chore: do not run Webpack BundleAnalyzerPlugin in Circle CI (#2063)
This commit is contained in:
parent
992c5efd7e
commit
f012369d72
|
@ -126,21 +126,17 @@ module.exports = {
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
failOnError: true,
|
failOnError: true,
|
||||||
cwd: process.cwd()
|
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
|
].filter(Boolean),
|
||||||
? [
|
|
||||||
new webpack.HotModuleReplacementPlugin({
|
|
||||||
requestTimeout: 120000
|
|
||||||
})
|
|
||||||
]
|
|
||||||
: [
|
|
||||||
|
|
||||||
new BundleAnalyzerPlugin({ // generates report.html
|
|
||||||
analyzerMode: 'static',
|
|
||||||
openAnalyzer: false,
|
|
||||||
logLevel: 'silent'
|
|
||||||
})
|
|
||||||
]),
|
|
||||||
devtool: dev ? 'inline-source-map' : 'source-map',
|
devtool: dev ? 'inline-source-map' : 'source-map',
|
||||||
performance: {
|
performance: {
|
||||||
hints: dev ? false : (process.env.DEBUG ? 'warning' : 'error'),
|
hints: dev ? false : (process.env.DEBUG ? 'warning' : 'error'),
|
||||||
|
|
Loading…
Reference in a new issue