Skip to content

udaypydi/webpack-bundle-charts-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Cli Bundle Analyzer

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

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

or

yarn add 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 WebpackBundleAnalyzerCLI = require('webpack-bundle-analysis-cli');

plugins: [new WebpackBundleAnalyzerCLI({
            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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published