new ManifestPlugin(options?): ManifestPluginAttributes
options:
ManifestPluginOptionsoptions
Returns:
ManifestPluginCreates an instance of ManifestPlugin.
Attributes
options:
ManifestPluginOptionsapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
Describes a manifest entrypoint.
Attributes
Describes a manifest asset that links the emitted path to the producing asset.
Attributes
The manifest object.
[index: {string}]any
Attributes
assets:
Record<string, ManifestItem>Contains the names of assets.
entrypoints:
Record<string, ManifestEntrypoint>Contains the names of entrypoints.
Attributes
entrypoints:
booleanEnables/disables generation of the entrypoints manifest section.
filename:
stringSpecifies the filename of the output file on disk. By default the plugin will emit
manifest.json
inside the 'output.path' directory.filter:
(item: ManifestItem) => booleanAllows filtering the files which make up the manifest.
generate:
(manifest: ManifestObject) => ManifestObjectA function that receives the manifest object, modifies it, and returns the modified manifest.
prefix:
stringSpecifies a path prefix for all keys in the manifest.
serialize:
(manifest: ManifestObject) => stringA function that receives the manifest object and returns the manifest string.