/webpack-compiling-stats-plugin

Webpack plugin to output compiling stats

Primary LanguageJavaScriptMIT LicenseMIT

Webpack Compiling Stats Plugin

Webpack plugin to output compiling stats

npm node deps licenses

Installation

Via npm:

$ npm install webpack-compiling-stats-plugin --save-dev

Via yarn:

$ yarn add -D webpack-compiling-stats-plugin

output

Usage

const CompilingStatsPlugin = require('webpack-compiling-stats-plugin');

const webpackConfig = {
  ...
  plugins: [
    new CompilingStatsPlugin()
  ]
}

✍️ when using thread-loader, all the same file types have to be placed in the same rule.

rules: [
  {
    test: /\.(js|jsx)$/,
    loader: "eslint-loader",
    enforce: "pre"
  },
  {
    test: /\.(js|jsx)$/,
    use: ["thread-loader", "babel-loader"]
  }
];

->

rules: [
  {
    test: /\.(js|jsx)$/,
    use: ["thread-loader", "babel-loader", "eslint-loader"]
  }
];

Configuration

new CompilingStatsPlugin(options);

ignoredPlugins (default: [native webpack plugins])

List of webpack plugins are ignored when analyzing/logging

threadhold (default: 0)

The minimum time is accepted when logging

log

The function logs stats