FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

jonamat/webpack-visualizer-plugin2: Working fork of the unmaintained webpack-visualizer-plugin. Compatible with webpack 5x · GitHub

 
 

Repository files navigation

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

About

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

Resources

Stars

14 stars

Watchers

0 watching

Forks

Contributors

Languages


Back | FazBrowse Home | New Git URL