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

remove-esm
Nolan Lawson 2021-07-04 16:39:31 -07:00 zatwierdzone przez GitHub
rodzic 992c5efd7e
commit f012369d72
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 10 dodań i 14 usunięć

Wyświetl plik

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