webpack-monitor

1.0.2 • Public • Published

Webpack Monitor Plugin

A webpack plugin to gather build data, render useful analysis of how your bundles transform over time and make suggestions on how you can keep your compiled application as streamlined as possible.

Currently in the data gathering phase only! Analysis tool to come.

Installation

Install the plugin with npm:

$ npm install webpack-monitor --save-dev

Basic Usage

const WebpackMonitor = require('webpack-monitor');
const webpackConfig = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'bundle.js'
  },
  plugins: [new WebpackMonitor()]
};

The plugin accepts an options object.

  • target: The route of the outputted JSON stats file (relative to build directory). Defaults to ../monitor/stats.json

Keywords

none

install

npm i webpack-monitor

Downloadsweekly downloads

1,852

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability