12 lines
270 B
JavaScript
12 lines
270 B
JavaScript
/* eslint-disable import/unambiguous */
|
|
|
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
|
|
|
|
module.exports = {
|
|
webpack: config => {
|
|
if (process.env.ANALYZE === 'true')
|
|
config.plugins.push(new BundleAnalyzerPlugin())
|
|
return config
|
|
}
|
|
}
|