Webpack plugin to generate an interactive treemap visualization of your bundle composition. Version 0.1.11 is the latest and last release, with no updates since 2017. The plugin outputs a standalone HTML file (stats.html) that shows which modules consume the most space and identifies duplicates. Unlike webpack-bundle-analyzer (which offers more features and active maintenance), this plugin is minimal and no longer actively developed. It works with Webpack 1.x/2.x, but compatibility with Webpack 3+ is uncertain.
npm install webpack-visualizer-pluginVerified import paths — ran on the pinned version, not inferred.
Add the Visualizer plugin to a webpack configuration. Build outputs statistics.html along with bundle.js. Open stats.html in browser to see treemap.
Replace with webpack-bundle-analyzer: npm install --save-dev webpack-bundle-analyzer and update plugin import/usage.
Check Webpack version; consider switching to webpack-bundle-analyzer for Webpack 4+.
Use alternatives like source-map-explorer for simpler visualizations or webpack-bundle-analyzer with static mode.
Manually move stats.html or set output.path accordingly.
Run: npm install --save-dev webpack-visualizer-plugin
Use: new Visualizer({}) at minimum, even if empty object.No dependency data recorded yet.