simple-stats-webpack-plugin

Simple plugin to reduce the output of webpack to a minimum and maximum of information

Usage no npm install needed!

<script type="module">
  import simpleStatsWebpackPlugin from 'https://cdn.skypack.dev/simple-stats-webpack-plugin';
</script>

README

Simple stats for the actual webpack version (4.42.1 - ^5.31.0)

Set the errors and warnings to a minimum of output for maximum of information

This is a simple webpack plugin, and it is just in alpha state, so please do not use it in your production environment.

The goal is to reduce the output of warning and error messages in a performant way and produce better and clearer error and warning messages, than webpack himself, with stats option "errors-warnings" or any other.

Set stats to none if you use this plugin, otherwise you may have duplicated errors or warnings in your output.

https://webpack.js.org/configuration/stats/

Please share webpack config and full information around your warnings or errors which are not recognized, this will help for further investigations.

And by the way, the package has no dependencies.

Install

$ npm i --save-dev simple-stats-webpack-plugin

or

$ yarn add --dev simple-stats-webpack-plugin

Use

const SimpleStatsWebpackPlugin = require('simple-stats-webpack-plugin');
plugins: [
        new SimpleStatsWebpackPlugin()
],

Options

plugins: [
        new SimpleStatsWebpackPlugin({
           id : 'SimpleStatsWebpackPlugin', 
           showWarnings: true,
           showErrors: true,
           showTime: true,
           clearConsole: true,
           showHash: true,
           showRun: true,
           showActivity: true
        })
],