webpack-why-package

0.2.3 • Public • Published

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

/webpack-why-package/

    Package Sidebar

    Install

    npm i webpack-why-package

    Weekly Downloads

    1

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    10.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • fengzilong