More vite improvements
This commit is contained in:
parent
25258b43a7
commit
20c81628f1
1 changed files with 3 additions and 6 deletions
|
@ -74,6 +74,7 @@ export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
minify: 'esbuild',
|
minify: 'esbuild',
|
||||||
cssCodeSplit: false,
|
cssCodeSplit: false,
|
||||||
|
chunkSizeWarningLimit: 550,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
// assetFileNames: '[hash][extname]',
|
// assetFileNames: '[hash][extname]',
|
||||||
|
@ -82,15 +83,11 @@ export default defineConfig({
|
||||||
assetFileNames: `[hash][extname]`,
|
assetFileNames: `[hash][extname]`,
|
||||||
preserveModules: false,
|
preserveModules: false,
|
||||||
|
|
||||||
manualChunks: (id) => {
|
manualChunks: () => {
|
||||||
if (id.includes('node_modules')) {
|
|
||||||
return 'vendor';
|
|
||||||
} else {
|
|
||||||
return 'app';
|
return 'app';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
|
|
Loading…
Reference in a new issue