# webpack-fail-plugin

> Webpack plugin that makes the process return an error code on failure

Latest version **2.0.0** (published 2017-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-fail-plugin
pnpm add webpack-fail-plugin
yarn add webpack-fail-plugin
bun add webpack-fail-plugin
```

## Health

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

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-08-28 |
| First published | 2015-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/webpack-fail-plugin) |
| Module format | CommonJS |
| Node | >=0.11.12 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Author | Tiddo Langerak |
| Maintainers | tiddo |
| Keywords | webpack |

## Links

- npm: https://www.npmjs.com/package/webpack-fail-plugin
- Repository: https://github.com/TiddoLangerak/webpack-fail-plugin
- Homepage: https://github.com/TiddoLangerak/webpack-fail-plugin#readme
- Issues: https://github.com/TiddoLangerak/webpack-fail-plugin/issues
- npm.io page: https://npm.io/package/webpack-fail-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

- 2.0.0 (latest) — 2017-08-28
- 1.0.6 — 2017-02-27
- 1.0.5 — 2016-07-20
- 1.0.4 — 2016-01-20
- 1.0.2 — 2015-07-21
- 1.0.1 — 2015-07-21
- 1.0.0 — 2015-07-21

## README

# DEPRECATED: This is default behaviour in Webpack 2.x, you probably don't need this plugin anymore.

If you're using Webpack 2+ then you shouldn't need this plugin anymore. Under normal circumstances Webpack
should already exit with a proper exit code. As such, this plugin does not officially support Webpack 2+.

If you don't get the correct exit code with Webpack 2+ then this is most likely a bug in a plugin you're using, or 
you're running into a Webpack bug. In either case I strongly recommend to isolate the problem and file issues at the
appropriate repositories. In the mean time you could try to  use this plugin as a *temporary* workaround. 

# Description

Webpack plugin that will make the process return status code 1 when it finishes with errors in single-run mode.

## Install
```
npm install webpack-fail-plugin --save-dev
```

## Usage
```javascript
var failPlugin = require('webpack-fail-plugin');

module.exports = {
	//config
	plugins: [
		failPlugin
	]
}
```

Credits to [@happypoulp](https://github.com/happypoulp).

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