Update BannerPlugin definition

Fix webpack/lib/BannerPlugin.js:19
Error: BannerPlugin only takes one argument (pass an options object)
This commit is contained in:
Tommy Troy Lin
2017-02-13 18:00:28 +08:00
committed by GitHub
parent a01e02004b
commit ce8ec50aab
+8 -1
View File
@@ -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<string | RegExp>,
include?: string | RegExp | Array<string | RegExp>,
exclude?: string | RegExp | Array<string | RegExp>
});
}
class ContextReplacementPlugin extends Plugin {