Have ideas to improve npm?Join in the discussion! »

    rollup-plugin-manifest-json
    TypeScript icon, indicating that this package has built-in type declarations

    1.5.1 • Public • Published

    rollup-plugin-manifest-json

    Build Status Coverage Status NPM Version

    Rollup plugin to generate a manifest.json file used to tell the browser about your web app.

    Install

    npm i --save-dev rollup-plugin-manifest-json
    

    Usage

    import manifestJson from "rollup-plugin-manifest-json";
     
    export default {
        input: "main.js",
        plugins: [
            manifestJson({
                input: "public/manifest.json", // Required
                minify: true,
                manifest: {
                    short_name: "custom-short-name"
                }
            })
        ]
    }

    Options

    input

    Required

    Type: string

    Default: ""

    The manifest.json file location that will be modified and copied into the Rollup build directory.

    minify

    Optional

    Type: boolean

    Default: false

    Whether or not to mangle the output file, it's recommended to minify the file as it will reduce the file size.

    manifest

    Type: object

    Default: {}

    The key values you wish to add or modify to the existing manifest.json file. For a full list of key values to use see here.

    output

    Optional

    Type: string

    Default: manifest.json

    Unique output directory to write the manifest file to, useful for building your app outside of the root rollup folder.

    Contributors

    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 ❤️

    Adam Zerella Ben McCann

    Install

    npm i rollup-plugin-manifest-json

    DownloadsWeekly Downloads

    36

    Version

    1.5.1

    License

    MIT

    Unpacked Size

    5.34 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar