On this page

Source Code: lib/BannerPlugin.js#L46

Prepends or appends banner text to emitted assets that match the configured file filters.

new BannerPlugin(options): BannerPlugin
Source Code: lib/BannerPlugin.js#L52
Attributes

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

bannerPlugin.banner(data): string
Attributes
data:Object
chunk:Chunk
filename:string
hash:string
Returns:string
Source Code: lib/BannerPlugin.js#L60
bannerPlugin.apply(compiler): void
Source Code: lib/BannerPlugin.js#L84
Attributes
compiler:Compiler

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