Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.08 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.08 KB

webpack-why-package

npm Node.js CI status npm npm

Answer to "Why that package is in the bundle"

screenshot

Show the whole issuer chain and tell you why that package is in your bundle

Installation

npm i webpack-why-package

Webpack Plugin

const WebpackWhyPackagePlugin = require( 'webpack-why-package' ).Plugin

// in your webpack config
{
  plugins: [
    new WebpackWhyPackagePlugin()
  ]
}

API

const { analyze, format } = require( 'webpack-why-package' )

console.log( format( analyze( webpackStats ) ) )

License

MIT