Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-bundle-analysis-cli

udaypydi13ISC0.1.2

A webpack plugin analyzer in command line. Can be used for webpack health checks.

webpack, webpack-bundle-analyzer, webpack-cli, bundle, webpack-analysis, plugin, webpack-plugin, webpack-devtools

readme

Webpack Cli Bundle Analyzer

A webpack plugin for analysing the bundle sized in terminal. Provides a graphical representation of the bundle sizes in command line. Just install and add the plugin to the webpack plugins array and check out the magic!

npm i --save webpack-bundle-analysis-cli

Examples:

  1. Default Options ` const WebpackBundleAnalyzer = require('webpack-bundle-analysis-cli');

plugins: [new WebpackBundleAnalyzer()]


2. Passing options to the plugin

const WebpackBundleAnalyzer = require('webpack-bundle-analysis-cli');

plugins: [new WebpackBundleAnalyzer({ height: 20, width: 40, color: 'cyan' })] `

Output:

Limitations:

  • Bundle Sizes are plotted in bytes.
  • Only numberic legends support.
  • Support for only height, width and color option.