new BannerPlugin(options): BannerPluginAttributes
options:
<BannerPluginArgument>Returns:
<BannerPlugin>Normalizes banner options and compiles the configured banner source into a function that can render per-asset banner text.
Attributes
banner:
<Function>options:
<BannerPluginOptions>apply(compiler): voidAttributes
compiler:
<Compiler>Returns:
<void>Validates the configured options and injects rendered banner comments into matching compilation assets at the configured process-assets stage.
Type:
<string>
|
<BannerPluginOptions>
|
<Function>Attributes
banner:
<string>
|
<Function>Specifies the banner.
entryOnly:
<boolean>If true, the banner will only be added to the entry chunks.
exclude:
<string>
|
<RegExp>
|
<Function>
|
<Rule>[] Exclude all modules matching any of these conditions.
footer:
<boolean>If true, banner will be placed at the end of the output.
[] |
<Function>
Include all modules matching any of these conditions.raw:
<boolean>If true, banner will not be wrapped in a comment.
stage:
<number>Specifies the stage when add a banner.
[] |
<Function>
Include all modules that pass test assertion.