{"id":20714,"library":"webpack-bundle-analyser","title":"webpack-bundle-analyser","description":"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.","status":"active","version":"1.4.0","language":"javascript","source_language":"en","source_url":"https://github.com/lmenus/webpack-analyse","tags":["javascript"],"install":[{"cmd":"npm install webpack-bundle-analyser","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-bundle-analyser","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-bundle-analyser","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Requires webpack to generate the stats JSON input file","package":"webpack","optional":false},{"reason":"Can optionally use its plugin to generate stats file","package":"webpack-bundle-analyzer","optional":true}],"imports":[{"note":"The package provides a CLI only; there is no programmatic JS API. The command must include build, output directory, and stats file flag.","wrong":"webpack-bundle-analyser (without arguments)","symbol":"webpack-bundle-analyser (CLI)","correct":"npx webpack-bundle-analyser build -o dist -d data.json"}],"quickstart":{"code":"// 1. Generate webpack stats file\nwebpack --profile --json > data.json\n\n// 2. Run the analyser\nnpx webpack-bundle-analyser build -o dist -d data.json\n\n// 3. Serve the output (e.g., with npx serve)\nnpx serve dist","lang":"javascript","description":"Demonstrates how to generate a webpack stats file and use the CLI to produce an analyser report."},"warnings":[{"fix":"Consider using webpack-bundle-analyzer instead, which is actively maintained.","message":"The package is not actively maintained; last release was in 2018. The todo list indicates incomplete features.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use webpack-bundle-analyser build -o <output> -d <stats.json>","message":"The CLI command requires a build subcommand; running without it does nothing.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install webpack-bundle-analyser --save-dev or use npx","cause":"Package not installed or not in PATH","error":"Error: Cannot find module 'webpack-bundle-analyser'"},{"fix":"Use syntax: webpack-bundle-analyser build -o output -d data.json","cause":"The build subcommand is required but omitted","error":"Error: build is not a valid command"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}