JSPM

webpack-info-plugin

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 428
  • Score
    100M100P100Q97162F
  • License MIT

Display webpack build status and stats

Package Exports

  • webpack-info-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webpack-info-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

webpack-info-plugin

simple plugin to show webpack state & stats like webpack-dev-middleware

// webpack.config.js

var WebpackInfoPlugin = require('webpack-info-plugin');

var info = new WebpackInfoPlugin({
  stats: { // provide false to disable displaying stats
      // pass options from http://webpack.github.io/docs/node.js-api.html#stats-tostring
      colors: true,
      version: false,
      hash: false,
      timings: true,
      assets: false,
      chunks: false,
      chunkModules: false,
      modules: false
    },
    state: true // show bundle valid / invalid
});

module.exports = {
  entry: {
    ...
  },
  output: {
    ...
  },
  plugins: [
    info
  ]
}

sample output:

webpack: bundle is now INVALID.
Time: 53ms

WARNING in ./src/util/__test__/array.test.js
Module parse failed: ...../src/util/__test__/array.test.js Line 8: Unexpected token ;
You may need an appropriate loader to handle this file type.
|     describe('#indexOf()', function () {
|         it('should return -1 when the value is not present', function () {
|             assert.equal(-1, [1,2,3].indexOf(5);
|             assert.equal(-1, [1,2,3].indexOf(0));
|         });
 @ ./src \.test$

.......


Time: 49ms
webpack: bundle is now VALID.