jonamat / webpack-visualizer-plugin2

Working fork of the unmaintained webpack-visualizer-plugin. Compatible with webpack 5x

Home Page:http://chrisbateman.github.io/webpack-visualizer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
        }),
    ],
}

About

Working fork of the unmaintained webpack-visualizer-plugin. Compatible with webpack 5x

http://chrisbateman.github.io/webpack-visualizer/

License:MIT License


Languages

Language:JavaScript 77.4%Language:CSS 19.9%Language:EJS 2.7%