Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-filter-warnings-plugin

mattlewis925.7mMIT1.2.1

Allows you to hide certain warnings from webpack compilations

webpack plugin

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.2.1 (2018-11-25)

Bug Fixes

  • handle warnings which are plain strings instead of objects (0849576)

1.2.0 (2018-03-06)

Features

1.1.0 (2017-07-31)

Documentation

  • improved documentation

1.0.0 (2017-07-31)

Features