Rollup plugin that generates a web application manifest.json file for Progressive Web Apps (PWAs). It reads an existing manifest, optionally merges overrides, minifies the output, and emits it into the Rollup build directory. Version 1.7.0 (stable, maintained). Distinguishes itself by handling both input file cloning and direct manifest object merging, with built-in minification. Requires the manifest to be a valid JSON file or object. Compared to alternatives like vite-plugin-pwa, this is a focused, zero-dependency plugin for Rollup only.
npm install rollup-plugin-manifest-jsonVerified import paths — ran on the pinned version, not inferred.
Generates a manifest.json file for a PWA, merging custom overrides into an existing manifest.
Ensure `input` is a valid path to a manifest JSON file.
Set `output` to a path inside your Rollup output directory, e.g., `output: 'dist/manifest.webmanifest'`.
Ensure `manifest` overrides are explicit; no nested merging.
Add `minify: false` to options if you need a human-readable manifest.
Create the manifest file at the specified path or correct the path in plugin options.
Do not destructure or expect a return value from manifestJSON(); it emits a file into Rollup's output.
Ensure `input` is a plain file path, not a module or URL.
No dependency data recorded yet.