Implementierung - SEO - 01.08.2025

This commit is contained in:
2025-08-01 14:26:05 +02:00
parent 7aa0543001
commit f176743885
35 changed files with 3427 additions and 98 deletions
+23 -3
View File
@@ -104,12 +104,32 @@ export default defineConfig({
},
build: {
sourcemap: true,
cssCodeSplit: true,
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
},
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom'],
'mdx-vendor': ['@mdx-js/react']
}
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
'mdx-vendor': ['@mdx-js/react'],
'i18n-vendor': ['i18next', 'react-i18next'],
'ui-vendor': ['framer-motion', 'lucide-react']
},
// Optimierte Asset-Dateinamen
assetFileNames: (assetInfo) => {
let extType = assetInfo.name.split('.').at(-1);
if (/webp|png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) {
extType = 'img';
}
return `assets/${extType}/[name]-[hash][extname]`;
},
chunkFileNames: 'assets/js/[name]-[hash].js',
entryFileNames: 'assets/js/[name]-[hash].js',
}
}
},