New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webpack-fail-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-fail-plugin

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

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

var failPlugin = require('webpack-fail-plugin');

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

Credits to @happypoulp.

Keywords

FAQs

Package last updated on 28 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc