This commit is contained in:
FairyEver 2019-12-13 08:31:26 +08:00
parent 847e6f8ee0
commit 0d23c25920
1 changed files with 5 additions and 3 deletions

View File

@ -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,