feat: chunks improved

This commit is contained in:
eshanized
2025-01-07 13:01:15 +05:30
parent c359947d62
commit 70f375a7df

View File

@@ -7,4 +7,17 @@ export default defineConfig({
optimizeDeps: {
exclude: ['lucide-react'],
},
build: {
rollupOptions: {
output: {
entryFileNames: 'script.js',
assetFileNames: (chunkInfo) => {
if (chunkInfo.name?.endsWith('.css')) {
return 'style.css';
}
return '[name].[ext]';
},
},
},
},
});