Webpack plugin that generates a JSON manifest mapping original filenames to their hashed output (e.g., main.js → main-9c68d5e8.js). v6.5.1 is the latest stable release, with frequent updates (~monthly). Written in TypeScript, ships its own types. Supports Subresource Integrity (SRI), entrypoint assets, custom sorting, merging, and hooks. A key differentiator is its built-in SRI and entrypoint handling, plus full webpack 5 compatibility. Requires Node >=20.10 and webpack ^5.61. No default export in v6 — use named import.
npm install webpack-assets-manifestVerified import paths — ran on the pinned version, not inferred.
Creates a manifest with integrity and entrypoints, filters out .map files, then accesses entries and SRI hashes after build.
Change `import WebpackAssetsManifest from 'webpack-assets-manifest'` to `import { WebpackAssetsManifest } from 'webpack-assets-manifest'`Set `output: 'manifest.json'` explicitly to retain old behavior or update downstream consumers.
Update code that reads entrypoints to use the new nested structure.
Ensure all option names match the documented schema exactly.
Use consistent hashing algorithm; if exact match needed, consider using webpack's Subresource Integrity plugin directly.
import { WebpackAssetsManifest } from 'webpack-assets-manifest'Install with `npm install -D webpack-assets-manifest` and ensure Node >=20.10
Check valid option names in the schema; use 'entrypointsUseAssets' only for v4, for v5+ use 'entrypoints: true'