1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 12:50:38 +08:00
This commit is contained in:
Pan 2018-08-03 18:02:54 +08:00
parent 91fb10b7b3
commit 8fecdf22d5

View File

@ -111,6 +111,7 @@ const webpackConfig = merge(baseWebpackConfig, {
test: resolve("src/components"), // 可自定义拓展你的规则
minChunks: 3, // 最小公用次数
priority: 5,
reuseExistingChunk: true
},
}
},
@ -164,7 +165,7 @@ if (config.build.generateAnalyzerReport || config.build.bundleAnalyzerReport) {
if (config.build.generateAnalyzerReport) {
webpackConfig.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename:'bundle-report.html',
reportFilename: 'bundle-report.html',
openAnalyzer: false
}))
}