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
1 changed files with 10 additions and 14 deletions

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'),