Bundle Analyzer webpack plugin.
npm install @bundle-analyzer/webpack-pluginOfficial webpack plugin compatible with Bundle Analyzer service.
```
npm install --save-dev @bundle-analyzer/webpack-plugin
webpack.config.js
`js
const BundleAnalyzerPlugin = require('@bundle-analyzer/webpack-plugin')
module.exports = {
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js',
},
plugins: [new BundleAnalyzerPlugin({ token: 'Your repository token' })],
}
`
You can specify the token using options or environment variable BUNDLE_ANALYZER_TOKEN`.
You can specify a custom configuration file.
MIT