1.2.1 • Published 4 years ago
dulcet-webpack-manifest-plugin v1.2.1
Webpack Manifest Plugin

Webpack plugin for generating an asset manifest.
Install
npm install --save-dev webpack-manifest-pluginUsage
In your webpack.config.js
var ManifestPlugin = require('webpack-manifest-plugin');
module.exports = {
// ...
plugins: [
new ManifestPlugin()
]
};This will generate a manifest.json file in your root output directory with a mapping of all source file names to their corresponding output file, for example:
{
"mods/alpha.js": "mods/alpha.1234567890.js",
"mods/omega.js": "mods/omega.0987654321.js"
}Configuration
A manifest is configurable using constructor options:
new ManifestPlugin({
fileName: 'my-manifest.json',
basePath: '/app/'
seed: {
name: 'My Manifest'
}
})Options:
fileName: The manifest filename in your output directory (manifest.jsonby default).basePath: A path prefix for all file references. Useful for including your output path in the manifest.publicPath: A path prefix used only on output files, similar to Webpack's output.publicPath. Ignored ifbasePathwas also provided.stripSrc: removes unwanted strings from source filenames (string or regexp)writeToFileEmit: If set totruewill emit to build folder and memory in combination withwebpack-dev-serverseed: A cache of key/value pairs to used to seed the manifest. This may include a set of custom key/value pairs to include in your manifest, or may be used to combine manifests across compilations in multi-compiler mode. To combine manifests, pass a shared seed object to each compiler's ManifestPlugin instance.
1.2.1
4 years ago