webpack-filter-warnings-plugin
Allows you to hide certain warnings from webpack compilations
Last updated a year 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 (a year ago)
  • 2.0.0-beta.0                                ...           next (a year ago)

5 Versions

  • 2.0.0-beta.0                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 195
This Week 961
This Month 3,151
Last Day 212
Last Week 1,062
Last Month 3,217
Dependencies (0)
None
Dev Dependencies (17)

Copyright 2014 - 2017 © taobao.org |