# webpack-filter-warnings-plugin

> Allows you to hide certain warnings from webpack compilations

Latest version **1.2.1** (published 2018-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-filter-warnings-plugin
pnpm add webpack-filter-warnings-plugin
yarn add webpack-filter-warnings-plugin
bun add webpack-filter-warnings-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2018-11-25 |
| First published | 2017-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.3 < 5.0.0 \|\| >= 5.10 |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Author | Matt Lewis |
| Maintainers | mattlewis92 |
| Keywords | webpack plugin |

## Links

- npm: https://www.npmjs.com/package/webpack-filter-warnings-plugin
- Repository: https://github.com/mattlewis92/webpack-filter-warnings-plugin
- Homepage: https://github.com/mattlewis92/webpack-filter-warnings-plugin#readme
- Issues: https://github.com/mattlewis92/webpack-filter-warnings-plugin/issues
- npm.io page: https://npm.io/package/webpack-filter-warnings-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2018-11-25
- 2.0.0-beta.0 (next) — 2019-03-17
- 1.2.0 — 2018-03-06
- 1.1.0 — 2017-07-31
- 1.0.0 — 2017-07-31

## README

# webpack-filter-warnings-plugin
[![npm][npm]][npm-url]
[![node][node]][node-url]
[![deps][deps]][deps-url]
[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]

> Allows you to hide certain warnings from webpack compilations

## Install
```bash
npm i -D webpack-filter-warnings-plugin
```

## Usage
```js
// 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

[npm]: https://img.shields.io/npm/v/webpack-filter-warnings-plugin.svg
[npm-url]: https://npmjs.com/package/webpack-filter-warnings-plugin

[node]: https://img.shields.io/node/v/webpack-filter-warnings-plugin.svg
[node-url]: https://nodejs.org

[deps]: https://david-dm.org/mattlewis92/webpack-filter-warnings-plugin.svg
[deps-url]: https://david-dm.org/mattlewis92/webpack-filter-warnings-plugin

[tests]: http://img.shields.io/travis/mattlewis92/webpack-filter-warnings-plugin.svg
[tests-url]: https://travis-ci.org/mattlewis92/webpack-filter-warnings-plugin

[cover]: https://codecov.io/gh/mattlewis92/webpack-filter-warnings-plugin/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/mattlewis92/webpack-filter-warnings-plugin

---
_Source: https://npm.io/package/webpack-filter-warnings-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
