A Webpack plugin that generates a JSON manifest file mapping source filenames to their corresponding built output filenames, useful for server-side rendering or cache busting. Current stable version is 6.0.1, which is ESM-only and requires Node.js 20.19.0+ and Webpack 5.75.0+. Maintained by shellscape. Releases follow semantic versioning with major breaking changes in v6 (ESM switch, Node 20+), v5 (drop webpack v4), v4 (TypeScript types added). Primarily differentiates from similar plugins by its simplicity and configurability (filter, map, generate options). Peer dependency on webpack ^5.75.0.
npm install webpack-manifest-pluginVerified import paths — ran on the pinned version, not inferred.
Minimal webpack config ESM showing plugin setup with common options: fileName, basePath, publicPath, filter, and map.
Convert project to ESM or continue using v5.x if CJS is required.
Upgrade Node.js to 20.19.0 or later, or pin to v5.x.
Upgrade to webpack v5 or use v4.x of this plugin.
Remove 'useLegacyEmit' from options; use 'assetHookStage' instead.
Always explicitly return true/false from the filter function.
Use 'generate' only when you need full control; otherwise use 'filter'/'map'.
Change config to ESM: rename file to .mjs and use import, or use dynamic import().
Use file.isInitial directly: filter: (file) => file.isInitial
Upgrade to webpack v5 or use webpack-manifest-plugin v4.x.