chore: do not run Webpack BundleAnalyzerPlugin in Circle CI (#2063)

This commit is contained in:
Nolan Lawson 2021-07-04 16:39:31 -07:00 committed by GitHub
parent 992c5efd7e
commit f012369d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,21 +126,17 @@ module.exports = {
exclude: /node_modules/,
failOnError: true,
cwd: process.cwd()
}),
dev && new webpack.HotModuleReplacementPlugin({
requestTimeout: 120000
}),
// generates report.html, somewhat expensive to compute, so avoid in CircleCI tests
!dev && !process.env.CIRCLECI && new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
logLevel: 'silent'
})
].concat(dev
? [
new webpack.HotModuleReplacementPlugin({
requestTimeout: 120000
})
]
: [
new BundleAnalyzerPlugin({ // generates report.html
analyzerMode: 'static',
openAnalyzer: false,
logLevel: 'silent'
})
]),
].filter(Boolean),
devtool: dev ? 'inline-source-map' : 'source-map',
performance: {
hints: dev ? false : (process.env.DEBUG ? 'warning' : 'error'),