Registry / devops / webpack-bundle-analyser

webpack-bundle-analyser

JSON →
library1.4.0jsnpmunverified

Webpack Bundle Analyser is a tool for analysing Webpack bundle output, forked from the official Webpack analyse website. Version 1.4.0 is the latest stable release, but the project appears to be in early development with an incomplete todo list including open browser after compiling, better error handling, and graph viewing improvements. It allows local or CI-based bundle analysis by generating a stats file and producing a static HTML report. Differentiators from alternatives like webpack-bundle-analyzer include a different UI and the ability to run without a plugin by using webpack --profile --json. However, it lacks the interactive treemap visualization and active maintenance of its alternative.

npm install webpack-bundle-analyser
INSTALL
IMPORT
SIG · WEBPACK-BUNDLE-ANA
W
webpack-bundle-analyser
devopsjavascriptv1.4.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

webpack-bundle-analyser (CLI)
npx webpack-bundle-analyser build -o dist -d data.json
webpack-bundle-analyser (without arguments)
The package provides a CLI only; there is no programmatic JS API. The command must include build, output directory, and stats file flag.

Demonstrates how to generate a webpack stats file and use the CLI to produce an analyser report.

// 1. Generate webpack stats file webpack --profile --json > data.json // 2. Run the analyser npx webpack-bundle-analyser build -o dist -d data.json // 3. Serve the output (e.g., with npx serve) npx serve dist
webpack-bundle-analyser --version
Debug
Known issues
gotchaThe package is not actively maintained; last release was in 2018. The todo list indicates incomplete features.
fix
Consider using webpack-bundle-analyzer instead, which is actively maintained.
affects: >=1.0.0
gotchaThe CLI command requires a build subcommand; running without it does nothing.
fix
Use webpack-bundle-analyser build -o <output> -d <stats.json>
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'webpack-bundle-analyser'
Package not installed or not in PATH
fix
Run npm install webpack-bundle-analyser --save-dev or use npx
Error: build is not a valid command
The build subcommand is required but omitted
fix
Use syntax: webpack-bundle-analyser build -o output -d data.json
Upgrade
Version history
1.4.0latest on npm
Audit
Dependencies
webpackrequiredRequires webpack to generate the stats JSON input file
webpack-bundle-analyzeroptionalCan optionally use its plugin to generate stats file
Agent activity
41 hits · last 30 days
node
34
OpenAI (training)
1
Resources
webpack-bundle-analyser — npm install webpack-bundle-analyser · libregistry