Commit f9e8c662 authored by 郝聪敏's avatar 郝聪敏

fix: 去掉打包分析

parent b3bc07fd
Pipeline #819 failed with stages
......@@ -8,7 +8,7 @@
"backend": "nohup egg-scripts start --port 7001 --workers 4",
"dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -r egg-ts-helper/register",
"build": "easy build --devtool --size",
"build": "easy build --devtool",
"tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean",
"kill": "easy kill",
......
......@@ -82,15 +82,22 @@ module.exports = {
cacheGroups:
{
default: false,
vueRouter: {
name: 'vue-router',
priority: 23,
chunks: 'all',
test: /[\\/]node_modules[\\/]vue-router[\\/]/,
enforce: true
},
axios: {
name: 'axios', // 分离组件库
name: 'axios',
priority: 23,
chunks: 'all',
test: /[\\/]node_modules[\\/]axios[\\/]/,
enforce: true
},
vuex: {
name: 'vuex', // 分离组件库
name: 'vuex',
priority: 23,
chunks: 'all',
test: /[\\/]node_modules[\\/]vuex[\\/]/,
......@@ -110,7 +117,7 @@ module.exports = {
enforce: true
},
elementResizeDetector: {
name: 'elementResizeDetector', // 分离组件库
name: 'element-resize-detector', // 分离组件库
priority: 20,
chunks: 'all',
test: /[\\/]node_modules[\\/]element-resize-detector[\\/]/,
......@@ -174,6 +181,7 @@ module.exports = {
}
}
},
// mode: 'development',
devtool:'source-map',
customize(webpackConfig){
// 此外 webpackConfig 为原生生成的 webpack config,可以进行自定义处理
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment