Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.15 KB

Electrode Webpack Reporter

NPM version Build Status Dependency Status

A HTML based reporter for webpack-dev-server. Adds a new route /reporter to your webpack-dev-server HTTP server.

const WebpackReporter = require("electrode-webpack-reporter");

const webpackConfig = {
  devServer: {
  }
};

const reporter = new WebpackReporter();
reporter.apply(webpackConfig);

//
// optional extra handling
//

reporter.on("report", (reporterOptions) => {
  if (reporterOptions.state) {
    // ... bundle is VALID
  }
});