# cherrypick-warnings-to-errors-webpack-plugin

> A webpack plugin that allows users to choose from which warnings should be shown as errors.

Latest version **1.0.3** (published 2023-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install cherrypick-warnings-to-errors-webpack-plugin
pnpm add cherrypick-warnings-to-errors-webpack-plugin
yarn add cherrypick-warnings-to-errors-webpack-plugin
bun add cherrypick-warnings-to-errors-webpack-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.0.3 |
| Published | 2023-08-30 |
| First published | 2023-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dabitk@naver.com |
| Maintainers | dabitk |

## Links

- npm: https://www.npmjs.com/package/cherrypick-warnings-to-errors-webpack-plugin
- Repository: https://github.com/dabitk/cherrypick-warnings-to-errors-webpack-plugin
- Homepage: https://github.com/dabitk/cherrypick-warnings-to-errors-webpack-plugin#readme
- Issues: https://github.com/dabitk/cherrypick-warnings-to-errors-webpack-plugin/issues
- npm.io page: https://npm.io/package/cherrypick-warnings-to-errors-webpack-plugin

## Recent versions

- 1.0.3 (latest) — 2023-08-30
- 1.0.2 — 2023-08-29
- 1.0.1 — 2023-08-29
- 1.0.0 — 2023-08-29

## README

# cherrypick-warnings-to-errors-webpack-plugin
A webpack plugin that allows users to choose from which warnings should be shown as errors.

## Installation

>  Webpack 2.2.0-rc or above version is required to use this plugin.

```
$ npm i -D cherrypick-warnings-to-errors-webpack-plugin
# or 
$ yarn add -D cherrypick-warnings-to-errors-webpack-plugin
```

## Usage
```
const CherryPickWarningsToErrorsWebpackPlugin = require('cherrypick-warnings-to-errors-webpack-plugin');
...

plugins: [
    new CherryPickWarningsToErrorsWebpackPlugin({
        warningsToConvert: ["WARN pattern in string you want to convert to ERROR"],
        exclude: [/WARN pattern in RegEx/, new RegExp("enter a WARN pattern to exclude "), "a string type can be used in the same array as well"]
    })
],

```

### `warningsToConvert`
An optional field used to convert matching WARN logs to ERROR logs. You can use both string (`""`) type pattern and RegEx type (`new RedgExp()`, `/.../`)pattern in the array. 

### `exclude`
An optional field used to filter out WARN webpack logs specified by the user. You can use both string (`""`) type pattern and RegEx type (`new RedgExp()`, `/.../`)pattern in the array.

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