MSP-3203 update chunks rules
This commit is contained in:
1 parent
f12f95d2c0
commit
5abab0bd61
1 file changed
+15
-1
+15
-1
@@ -17,7 +17,21 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
build: {
|
||||
minify: 'terser',
|
||||
outDir: 'build'
|
||||
outDir: 'build',
|
||||
chunkSizeWarningLimit: 1600,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
return id
|
||||
.toString()
|
||||
.split('node_modules/')[1]
|
||||
.split('/')[0]
|
||||
.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
|
||||
Reference in new issue
Block a user