Rollup plugin to generate a manifest.json file used to tell the browser about your web app.
npm install rollup-plugin-manifest-json
Rollup plugin that generates a web application manifest file. This file contains the startup parameters and application defaults when a web application is launched.
``shNPM
npm i --save-dev rollup-plugin-manifest-json
Usage
`js
import manifestJSON from "rollup-plugin-manifest-json";export default {
input: "main.js",
plugins: [
...
manifestJSON({
input: "public/manifest.json", // Required
// minify: true
// output: "public/manifest.webmanifest"
manifest: {
short_name: "different-short-name"
}
})
]
}
`Options
$3
Required
Type:
stringDefault:
""The web application manifest file location that will be either cloned or modified and moved into the Rollup build directory.
$3
_Optional_
Type:
booleanDefault:
trueWhether or not to mangle the output file, it's recommended to minify the file as it will reduce the file size.
$3
_Optional_
Type:
objectDefault:
{}The key values you wish to add or modify given the existing web application manifest file. For a full list of key values to use see here.
$3
_Optional_
Type:
stringDefault:
public/manifest.json`Output directory to write the manifest file to, useful for building your app outside of the root rollup folder.
Don't be scared to raise an issue or a pull request!
Any contributions, no matter how big or small will land your picture here and be greatly appreciated ❤️
[npm-version-badge]:https://img.shields.io/npm/v/rollup-plugin-manifest-json