webpack-filter-warnings-plugin
Allows you to hide certain warnings from webpack compilations
Last updated 6 years ago by mattlewis92 .
MIT · Repository · Bugs · Original npm
$ cnpm install webpack-filter-warnings-plugin 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.1                                ...           latest (7 years ago)

2 Versions

  • 2.0.0-beta.0                                ...           6 years ago
  • 1.2.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (19)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org