mirror of
https://gitee.com/blossom-editor/blossom.git
synced 2025-12-07 01:08:26 +08:00
拆分打包
This commit is contained in:
parent
c85868d80c
commit
d4ca45956f
@ -47,19 +47,19 @@ export default defineConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// electorn 应用不需要拆分文件打包
|
// electorn 应用不需要拆分文件打包
|
||||||
// build: {
|
build: {
|
||||||
// // 警告大小, 单位kb
|
// 警告大小, 单位kb
|
||||||
// // chunkSizeWarningLimit: 1000,
|
// chunkSizeWarningLimit: 1000,
|
||||||
// rollupOptions: {
|
rollupOptions: {
|
||||||
// output: {
|
output: {
|
||||||
// //@ts-ignore
|
//@ts-ignore
|
||||||
// manualChunks(id) {
|
manualChunks(id) {
|
||||||
// if (id.includes('node_modules')) {
|
if (id.includes('node_modules')) {
|
||||||
// return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user