mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
添加分割打包
This commit is contained in:
parent
2c4d12f3ce
commit
c63d374565
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "front-next",
|
||||
"version": "5.2.0",
|
||||
"version": "5.2.1",
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
"build": "vite build",
|
||||
|
@ -53,7 +53,16 @@ export default (): UserConfig => {
|
||||
},
|
||||
build: {
|
||||
sourcemap: false,
|
||||
polyfillDynamicImport: false // 必须为false
|
||||
polyfillDynamicImport: false, // 必须为false
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes("node_modules")) {
|
||||
return id.toString().split("node_modules/")[1].split("/")[0].toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user