weiler-electrode-webpack-reporter

1.0.0 • Public • Published

Electrode Webpack Reporter

NPM version Build Status Dependency Status

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

screenshot

Usage

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
  }
});

Built with ❤️ by Team Electrode @WalmartLabs.

Package Sidebar

Install

npm i weiler-electrode-webpack-reporter

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • georgeweiler