Prepends or appends banner text to emitted assets that match the configured file filters.
new BannerPlugin(options): BannerPluginAttributes
options:
BannerPluginArgumentoptions object
Returns:
BannerPluginNormalizes banner options and compiles the configured banner source into a function that can render per-asset banner text.
Attributes
options:
BannerPluginOptionsapply(compiler): voidAttributes
Validates the configured options and injects rendered banner comments into matching compilation assets at the configured process-assets stage.
Attributes
Specifies the banner.
entryOnly:
booleanIf true, the banner will only be added to the entry chunks.
Exclude all modules matching any of these conditions.
footer:
booleanIf true, banner will be placed at the end of the output.
Include all modules matching any of these conditions.
raw:
booleanIf true, banner will not be wrapped in a comment.
stage:
numberSpecifies the stage when add a banner.