# webpack-visualizer **Repository Path**: mirrors_tomasAlabes/webpack-visualizer ## Basic Information - **Project Name**: webpack-visualizer - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-26 - **Last Updated**: 2025-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Webpack Visualizer 2 This is a working fork of the unmaintained [webpack-visualizer-plugin](https://github.com/chrisbateman/webpack-visualizer) It works with webpack 5.x ## Installation ``` npm i -D webpack-visualizer-plugin2 ``` ## Usage in webpack configuration This will generate the statistics page in /stats/ folder NOTE: "filename" points to the webpack output path, not the project root path ```js const Visualizer = require('webpack-visualizer-plugin2'); module.exports = { plugins: [ new StatsWriterPlugin({ filename: path.join('..', 'stats', 'log.json'), fields: null, stats: { chunkModules: true }, }), new Visualizer({ filename: path.join('..', 'stats', 'statistics.html'), }), ], } ``` ![](https://cloud.githubusercontent.com/assets/1145857/10471320/5b284d60-71da-11e5-8d35-7d1d4c58843a.png)