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