From ce8ec50aab62c4d226d9ec61bcda989d5394c9ec Mon Sep 17 00:00:00 2001 From: Tommy Troy Lin Date: Mon, 13 Feb 2017 18:00:28 +0800 Subject: [PATCH] Update BannerPlugin definition Fix webpack/lib/BannerPlugin.js:19 Error: BannerPlugin only takes one argument (pass an options object) --- webpack/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpack/index.d.ts b/webpack/index.d.ts index 8b5a4d9938..f07630d869 100644 --- a/webpack/index.d.ts +++ b/webpack/index.d.ts @@ -654,7 +654,14 @@ declare namespace webpack { */ class BannerPlugin extends Plugin { - constructor(banner: any, options: any); + constructor(options: { + banner: string, + raw?: boolean, + entryOnly?: boolean, + test?: string | RegExp | Array, + include?: string | RegExp | Array, + exclude?: string | RegExp | Array + }); } class ContextReplacementPlugin extends Plugin {