MerchantryTidbits

frontend-tooling / cli

webpack-bundle-analyzer

Capability: webpack-bundle-analyzer

Use it when

  • find which dependencies make a JavaScript bundle large
  • compare bundle composition before and after a dependency change

What it solves

Not the fit when

  • analysis does not itself remove or lazy-load code

Install

npm install --save-dev webpack-bundle-analyzer

Invoke

Generate Webpack stats, run `webpack-bundle-analyzer stats.json`, and inspect modules and duplicated dependencies by parsed and gzip size.

Alternatives

No reviewed alternatives recorded yet.