Skip to content

honsa/simple-stats-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple stats for 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 internal 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
        })
],

About

Better error messages and warnings for webpack. Set the errors and warnings to a minimum of output for maximum of information

Resources

License

Stars

Watchers

Forks

Packages

No packages published