refine
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…
Reference in New Issue