|
@@ -130,7 +130,7 @@ const vueConfig = {
|
|
|
maxSize: 0, //拆分之前最大的数值,默认为0,即不做限制
|
|
|
minChunks: 1, //引入次数,如果为2 那么一个资源最少被引用两次才可以被拆分出来
|
|
|
maxAsyncRequests: 5, // 按需加载的最大并行请求数
|
|
|
- maxInitialRequests: 3, // 一个入口最大并行请求数
|
|
|
+ maxInitialRequests: 4, // 一个入口最大并行请求数
|
|
|
automaticNameDelimiter: '~', // 文件名的连接符
|
|
|
name: true,
|
|
|
cacheGroups: {
|
|
@@ -146,6 +146,11 @@ const vueConfig = {
|
|
|
priority: -10,
|
|
|
},
|
|
|
// UI库单独拆包
|
|
|
+ antDesign: {
|
|
|
+ name: 'chunk-antDesign',
|
|
|
+ priority: 19, // the weight needs to be larger than libs and app or it will be packaged into libs or app
|
|
|
+ test: /[\\/]node_modules[\\/]_?@ant-design(.*)/
|
|
|
+ },
|
|
|
antDesignVue: {
|
|
|
name: 'chunk-antDesignVue',
|
|
|
priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
|