Ensure bundle analysis is always enabled (#267)

This commit is contained in:
Matt (IPv4) Cowley
2021-05-18 16:39:41 +01:00
committed by GitHub
parent b05f301c21
commit c261892de4
2 changed files with 3 additions and 4 deletions

View File

@@ -48,9 +48,9 @@ module.exports = {
} },
new WebpackRequireFrom({ methodName: '__webpackDynamicImportURL' }),
// Analyze the bundle
process.argv.includes('--analyze') && new BundleAnalyzerPlugin(),
process.argv.includes('--analyze') && new DuplicatePackageCheckerPlugin(),
].filter(x => !!x),
new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false }),
new DuplicatePackageCheckerPlugin(),
],
},
chainWebpack: config => {
// Inject resolve-url-loader into the SCSS loader rules (to allow relative fonts in do-bulma to work)