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 (8 months ago)

5 Versions

  • 2.0.0-beta.0                                ...           8 months ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 144
This Week 144
This Month 2,727
Last Day 38
Last Week 1,151
Last Month 4,229
Dependencies (0)
None
Dev Dependencies (17)

Copyright 2014 - 2016 © taobao.org |