Skip to content

Commit

Permalink
Add --why support for multiple checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 20, 2019
1 parent 34b8180 commit 0787d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webpack/get-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ module.exports = function getConfig (limitConfig, check, output) {
config.plugins.push(new BundleAnalyzerPlugin({
openAnalyzer: process.env.NODE_ENV !== 'test',
analyzerMode: process.env.NODE_ENV === 'test' ? 'static' : 'server',
defaultSizes: check.gzip === false ? 'parsed' : 'gzip'
defaultSizes: check.gzip === false ? 'parsed' : 'gzip',
analyzerPort: 8888 + limitConfig.checks.findIndex(i => i === check)
}))
}

Expand Down

0 comments on commit 0787d0f

Please sign in to comment.