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() .end()
} }
// 分析工具 // 分析工具
config if (process.env.npm_config_report) {
.plugin('webpack-bundle-analyzer') config
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin) .plugin('webpack-bundle-analyzer')
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
}
}, },
// 不输出 map 文件 // 不输出 map 文件
productionSourceMap: false, productionSourceMap: false,