webpack-bundle-analysis-cli

0.1.2 • Public • Published

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()]
  1. 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.

Package Sidebar

Install

npm i webpack-bundle-analysis-cli

Weekly Downloads

1

Version

0.1.2

License

ISC

Unpacked Size

2.65 kB

Total Files

3

Last publish

Collaborators

  • udaypydi