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

fix: 去掉打包分析

parent b3bc07fd
Pipeline #819 failed with stages
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"backend": "nohup egg-scripts start --port 7001 --workers 4", "backend": "nohup egg-scripts start --port 7001 --workers 4",
"dev": "egg-bin dev -r egg-ts-helper/register", "dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -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", "tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean", "clean": "ets clean",
"kill": "easy kill", "kill": "easy kill",
......
...@@ -82,15 +82,22 @@ module.exports = { ...@@ -82,15 +82,22 @@ module.exports = {
cacheGroups: cacheGroups:
{ {
default: false, default: false,
vueRouter: {
name: 'vue-router',
priority: 23,
chunks: 'all',
test: /[\\/]node_modules[\\/]vue-router[\\/]/,
enforce: true
},
axios: { axios: {
name: 'axios', // 分离组件库 name: 'axios',
priority: 23, priority: 23,
chunks: 'all', chunks: 'all',
test: /[\\/]node_modules[\\/]axios[\\/]/, test: /[\\/]node_modules[\\/]axios[\\/]/,
enforce: true enforce: true
}, },
vuex: { vuex: {
name: 'vuex', // 分离组件库 name: 'vuex',
priority: 23, priority: 23,
chunks: 'all', chunks: 'all',
test: /[\\/]node_modules[\\/]vuex[\\/]/, test: /[\\/]node_modules[\\/]vuex[\\/]/,
...@@ -110,7 +117,7 @@ module.exports = { ...@@ -110,7 +117,7 @@ module.exports = {
enforce: true enforce: true
}, },
elementResizeDetector: { elementResizeDetector: {
name: 'elementResizeDetector', // 分离组件库 name: 'element-resize-detector', // 分离组件库
priority: 20, priority: 20,
chunks: 'all', chunks: 'all',
test: /[\\/]node_modules[\\/]element-resize-detector[\\/]/, test: /[\\/]node_modules[\\/]element-resize-detector[\\/]/,
...@@ -174,6 +181,7 @@ module.exports = { ...@@ -174,6 +181,7 @@ module.exports = {
} }
} }
}, },
// mode: 'development',
devtool:'source-map', devtool:'source-map',
customize(webpackConfig){ customize(webpackConfig){
// 此外 webpackConfig 为原生生成的 webpack config,可以进行自定义处理 // 此外 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