🐛 Fixed manual Chunks issue
This commit is contained in:
@@ -52,16 +52,6 @@ export default defineConfig(({mode}: { mode: string }): object => {
|
|||||||
entryFileNames: 'js/[name]-[hash].js',
|
entryFileNames: 'js/[name]-[hash].js',
|
||||||
assetFileNames: '[ext]/[name]-[hash].[ext]',
|
assetFileNames: '[ext]/[name]-[hash].[ext]',
|
||||||
compact: true,
|
compact: true,
|
||||||
manualChunks(id: string) {
|
|
||||||
// Prettier
|
|
||||||
if (id.includes('prettier')) {
|
|
||||||
return 'prettier';
|
|
||||||
}
|
|
||||||
// Vendor
|
|
||||||
if (id.includes("node_modules")) {
|
|
||||||
return 'vendor';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user