webpack-filter-warnings-plugin
Allows you to hide certain warnings from webpack compilations
Last updated 2 years ago by mattlewis92 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ 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 (2 years ago)
  • 2.0.0-beta.0                                ...           next (a year ago)

5 Versions

  • 2.0.0-beta.0                                ...           a year ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 6
This Week 573
This Month 5,253
Last Day 262
Last Week 1,716
Last Month 6,582
Dependencies (0)
None
Dev Dependencies (17)
Dependents (96)

Copyright 2014 - 2017 © taobao.org |