Allows exporting a JSON file that maps chunk ids to their resulting asset files. Webpack can then read this mapping, assuming it is provided somehow on the client, instead of storing a mapping (with chunk asset hashes) in the bootstrap script, which allows to actually leverage long-term caching.
Install via npm:
npm install chunk-manifest-webpack2-plugin
And then require and provide to webpack:
// in webpack.config.js or similarvar ChunkManifestPlugin = ;moduleexports =// your config values hereplugins:filename: "manifest.json"manifestVariable: "webpackManifest";
Where the manifest will be exported to on bundle compilation. This will be relative to the main webpack output directory. Default =
What JS variable on the client webpack should refer to when requiring chunks. Default =