mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 21:30:14 +08:00
refine
This commit is contained in:
parent
91fb10b7b3
commit
8fecdf22d5
@ -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
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user