Repository URL to install this package:
|
Version:
3.6.0 ▾
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
const config = require('./webpack.config.dev')
process.env.NODE_ENV = 'production'
module.exports = {
...config,
mode: 'production',
plugins: [...config.plugins, new BundleAnalyzerPlugin()],
entry: [[...config.entry].pop()],
}