1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 21:30:14 +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"), // 可自定义拓展你的规则 test: resolve("src/components"), // 可自定义拓展你的规则
minChunks: 3, // 最小公用次数 minChunks: 3, // 最小公用次数
priority: 5, priority: 5,
reuseExistingChunk: true
}, },
} }
}, },
@ -164,7 +165,7 @@ if (config.build.generateAnalyzerReport || config.build.bundleAnalyzerReport) {
if (config.build.generateAnalyzerReport) { if (config.build.generateAnalyzerReport) {
webpackConfig.plugins.push(new BundleAnalyzerPlugin({ webpackConfig.plugins.push(new BundleAnalyzerPlugin({
analyzerMode: 'static', analyzerMode: 'static',
reportFilename:'bundle-report.html', reportFilename: 'bundle-report.html',
openAnalyzer: false openAnalyzer: false
})) }))
} }