On this page

new BannerPlugin(options): BannerPlugin
Attributes

Normalizes banner options and compiles the configured banner source into a function that can render per-asset banner text.

Attributes
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:<void>

Validates the configured options and injects rendered banner comments into matching compilation assets at the configured process-assets stage.


Attributes
Specifies the banner.
entryOnly:<boolean>
If true, the banner will only be added to the entry chunks.
[] 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.
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.