On this page

new ManifestPlugin(options?): ManifestPlugin
Attributes

Creates an instance of ManifestPlugin.

Attributes
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.

Describes a manifest entrypoint.

Attributes
imports:string[]
Contains the names of entrypoints.
parents:string[]
Contains the names of parent entrypoints.

Describes a manifest asset that links the emitted path to the producing asset.

Attributes
file:string
The path absolute URL (this indicates that the path is absolute from the server's root directory) to file.
src:string
The source path relative to the context.

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:boolean
Enables/disables generation of the entrypoints manifest section.
filename:string
Specifies the filename of the output file on disk. By default the plugin will emit manifest.json inside the 'output.path' directory.
filter:(item: ManifestItem) => boolean
Allows filtering the files which make up the manifest.
generate:(manifest: ManifestObject) => ManifestObject
A function that receives the manifest object, modifies it, and returns the modified manifest.
prefix:string
Specifies a path prefix for all keys in the manifest.
serialize:(manifest: ManifestObject) => string
A function that receives the manifest object and returns the manifest string.