Need private packages and team management tools?Check out npm Teams »

webpack-filter-warnings-plugin

1.2.1 • Public • Published

webpack-filter-warnings-plugin

npm node deps tests coverage

Allows you to hide certain warnings from webpack compilations

Install

npm i -D webpack-filter-warnings-plugin

Usage

// webpack.config.js
const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
 
module.exports = {
  // ... rest of webpack config
  plugins: [
    new FilterWarningsPlugin({ 
      exclude: /any-warnings-matching-this-will-be-hidden/ 
    })
  ]
}

Why not use the built in stats.warningsFilter option?

Currently karma-webpack does not respect the stats.warningsFilter option. Also when excluding all warnings, webpack still says Compiled with warnings. when all warnings are filtere. Hopefully this plugin will no longer need to exist one day.

Licence

MIT

Install

npm i webpack-filter-warnings-plugin

DownloadsWeekly Downloads

33,164

Version

1.2.1

License

MIT

Unpacked Size

7.92 kB

Total Files

6

Last publish

Collaborators

  • avatar