Webpack plugin for generating asset manifests.
Generates a JSON manifest file that maps chunk names to their corresponding output files.
$ npm i --save webpack-plugin-manifestAdd new plugin instance to your webpack config
import ManifestPlugin from 'webpack-plugin-manifest'
const compiler = webpack({
// ...
plugins: [
new ManifestPlugin()
]
})The plugin accepts the following options:
path: Where to save the manifest. Defaults to Webpack output path.fileName: Name of the generated manifest file. Defaults towebpack-manifest.json.merge: Indicates whether to merge with existing manifest. Defaults tofalse.extensions: An array of allowed file extensions. Defaults to['.js', '.css'].prettyPrint: Whether to format the JSON output for readability. Defaults tofalse.
MIT