A CLI tool and webpack plugin that analyzes webpack's JSON output to display a tree of packages included in the bundle, sorted by size contribution. Version 3.1.0 is the latest stable release with no recent updates. It helps identify which dependencies are bloating the bundle. Unlike webpack-bundle-analyzer, it provides a plain text tree view rather than an interactive visualizer, and works with webpack 1–3 only. It supports two usage modes: piping webpack --json output to the CLI or adding a plugin to write a report file. Note: sizes are reported before minification/uglification.
npm install webpack-bundle-size-analyzerVerified import paths — ran on the pinned version, not inferred.
Shows how to add the plugin to a webpack config (TypeScript) to write a size report file.
Use webpack-bundle-analyzer for post-minification size analysis.
Use webpack-bundle-analyzer or source-map-explorer for webpack 4+.
Consider migrating to webpack-bundle-analyzer.
Run 'npm install -g webpack-bundle-size-analyzer' or add to devDependencies.
Ensure webpack --json is piped correctly and webpack config is valid.