mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add webpack-fail-plugin v1.0.5 (#10369)
This commit is contained in:
committed by
Masahiro Wakame
parent
25b78b03bc
commit
f567f32c90
9
webpack-fail-plugin/webpack-fail-plugin-tests.ts
Normal file
9
webpack-fail-plugin/webpack-fail-plugin-tests.ts
Normal 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
|
||||
]
|
||||
}
|
||||
17
webpack-fail-plugin/webpack-fail-plugin.d.ts
vendored
Normal file
17
webpack-fail-plugin/webpack-fail-plugin.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user