webpack-filter-warnings-plugin
Allows you to hide certain warnings from webpack compilations
Install
npm i -D webpack-filter-warnings-plugin
Usage
// webpack.config.jsconst FilterWarningsPlugin = ; moduleexports = // ... rest of webpack config plugins: 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