蓝山帝景
配置optimization,例如我把所有上传用到的插件打到 optimization: { runtimeChunk: {
name: 'manifest'
}, splitChunks: { maxInitialRequests: 10,
cacheGroups: {
// 上传所用到的组件打包成upload.js
cosUpload: {
test: /(cosUploadUtil|exif|lrz.all.bundle|qcloud_sdk)/,
name: 'upload',
chunks: 'initial',
minChunks: 1
}
}
}
},