mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Update BannerPlugin definition
Fix webpack/lib/BannerPlugin.js:19 Error: BannerPlugin only takes one argument (pass an options object)
This commit is contained in:
Vendored
+8
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user