analyzer
This commit is contained in:
parent
847e6f8ee0
commit
0d23c25920
|
|
@ -116,9 +116,11 @@ module.exports = {
|
|||
.end()
|
||||
}
|
||||
// 分析工具
|
||||
config
|
||||
.plugin('webpack-bundle-analyzer')
|
||||
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
|
||||
if (process.env.npm_config_report) {
|
||||
config
|
||||
.plugin('webpack-bundle-analyzer')
|
||||
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
|
||||
}
|
||||
},
|
||||
// 不输出 map 文件
|
||||
productionSourceMap: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue