Add webpack-fail-plugin v1.0.5 (#10369)

This commit is contained in:
Simon Hartcher
2016-08-03 01:16:14 +10:00
committed by Masahiro Wakame
parent 25b78b03bc
commit f567f32c90
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
///<reference path="webpack-fail-plugin.d.ts" />
import * as Webpack from "webpack";
import FailPlugin = require("webpack-fail-plugin");
const config: Webpack.Configuration = {
plugins: [
FailPlugin
]
}

View File

@@ -0,0 +1,17 @@
// Type definitions for webpack-fail-plugin v1.0.5
// Project: https://github.com/TiddoLangerak/webpack-fail-plugin
// Definitions by: Simon Hartcher <https://github.com/deevus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="./../webpack/webpack.d.ts" />
declare module "webpack-fail-plugin" {
import {Plugin} from "webpack";
/**
* Webpack plugin that will make the process return status code 1 when it finishes with errors in single-run mode.
*/
function WebpackFailPlugin(): Plugin;
export = WebpackFailPlugin;
}