mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
test: 小文件合并测试
This commit is contained in:
@@ -19,11 +19,9 @@ export default {
|
||||
chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`,
|
||||
assetFileNames: `assets/[ext]/[name]-${pkg.version}-${pkg.name}.[ext]`,
|
||||
entryFileNames: `js/[name]-${pkg.version}-${pkg.name}.js`,
|
||||
manualChunks(id: string, { getModuleInfo }) {
|
||||
manualChunks(id: string) {
|
||||
if (id.includes('node_modules')) {
|
||||
return id.toString().split('node_modules/')[1].split('/')[0].toString()
|
||||
} else if (id.includes('.vue') && getModuleInfo(id).code.length < 10000) {
|
||||
return 'vendor'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user