@bundle-analyzer/webpack-plugin

0.5.1 • Public • Published

@bundle-analyzer/webpack-plugin

Official webpack plugin compatible with Bundle Analyzer service.

Install

npm install --save-dev @bundle-analyzer/webpack-plugin

Usage

webpack.config.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' })],
}

Options

token

You can specify the token using options or environment variable BUNDLE_ANALYZER_TOKEN.

configFile

You can specify a custom configuration file.

Complete documentation

👉 See full documentation

License

MIT

Package Sidebar

Install

npm i @bundle-analyzer/webpack-plugin

Weekly Downloads

361

Version

0.5.1

License

MIT

Unpacked Size

4.87 kB

Total Files

4

Last publish

Collaborators

  • neoziro