webpack-visualizer-plugin2

1.2.0 • Public • Published

Webpack Visualizer 2

This is a working fork of the unmaintained webpack-visualizer-plugin

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

const Visualizer = require('webpack-visualizer-plugin2');

module.exports = {
    plugins: [
        new Visualizer(
        {
            filename: path.join('..', 'stats', 'statistics.html'),
            throwOnError: true,
        },
        {
            chunkModules: true
        }),
    ],
}

Dependencies (5)

Dev Dependencies (23)

Package Sidebar

Install

npm i webpack-visualizer-plugin2

Weekly Downloads

21,700

Version

1.2.0

License

MIT

Unpacked Size

473 kB

Total Files

7

Last publish

Collaborators

  • jonathanmataloni