new EntryOptionPlugin(): EntryOptionPluginReturns:
EntryOptionPluginapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
Attributes
compiler:
Compilerthe compiler
context:
stringcontext directory
entry:
EntryNormalizedrequest
Returns:
voidApply entry option.
Attributes
compiler:
Compilerthe compiler
name:
stringentry name
entry description
Returns:
EntryOptionsoptions for the entry
Entry description to options.
Attributes
compiler:
Compilerthe compiler
Returns:
EntryOptionPluginHooksthe hooks
Attributes
entry:
SyncBailHook<[string, string, EntryDescriptionNormalized], string | undefined>transform an entry into a different request (e.g. wrap a non-HTML entry in a synthetic HTML module); return
undefined
to keep the default behavior