{"name":"gatsby-plugin-manifest","description":"Gatsby plugin which adds a manifest.webmanifest to make sites progressive web apps","version":"2.1.0-alpha.e328d33f","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"7.0.0-beta.51","bluebird":"^3.5.0","sharp":"^0.20.2"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest#readme","keywords":["gatsby","gatsby-plugin","favicon","icons","manifest.webmanifest","progressive-web-app","pwa"],"license":"MIT","main":"index.js","peerDependencies":{"gatsby":">2.0.0-alpha"},"repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepublish":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"readmeFilename":"README.md","readme":"# gatsby-plugin-manifest\n\nAdds support for shipping a manifest.webmanifest with your site. The web application\nmanifest is a JSON file that lets users (on Android Chrome, Firefox, and Opera —\n[support in MS Edge & Safari is under development](http://caniuse.com/#feat=web-app-manifest))\nsave your web application to their smartphone home screen so it behaves similar\nto native apps.\n\nThis article from the Chrome DevRel team is a good intro to the web app\nmanifest—https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/\n\nFor more information see the w3 spec https://www.w3.org/TR/appmanifest/ or Mozilla Docs https://developer.mozilla.org/en-US/docs/Web/Manifest.\n\nIf you're using this plugin together with `gatsby-plugin-offline` (recommended),\nthis plugin should be listed _before_ the offline plugin so that it can cache\nthe created manifest.webmanifest.\n\nIf you use the \"automatic mode\" (described below), this plugin will also add a favicon link to your html pages.\n\n## Install\n\n`npm install --save gatsby-plugin-manifest`\n\n## How to use\n\nThis plugin configures Gatsby to create a `manifest.webmanifest` file on every site build.\n\n## Generating icons\n\nIt can be tedious creating the multitude of icon sizes required by different devices and browsers. This plugin includes code to auto-generate smaller icons from a larger src image.\n\nThere are three modes in which icon generation can function: automatic, hybrid, and manual. These three modes are explained below. Icon generation functions differently depending on which of the three you choose.\n\n### Automatic mode\n\nIn the automatic mode, you are responsible for defining the entire web app manifest except for the icons portion. You only provide a high resolution source icon. The icons themselves and the needed config will be generated at build time. See the example below:\n\n```javascript\n// In your gatsby-config.js\nplugins: [\n  {\n    resolve: `gatsby-plugin-manifest`,\n    options: {\n      name: \"GatsbyJS\",\n      short_name: \"GatsbyJS\",\n      start_url: \"/\",\n      background_color: \"#f7f0eb\",\n      theme_color: \"#a2466c\",\n      display: \"minimal-ui\",\n      icon: \"src/images/icon.png\", // This path is relative to the root of the site.\n    },\n  },\n]\n```\n\nWhen in automatic mode the following json array is injected into the manifest configuration you provide and the icons are generated from it. The source icon you provide should be at least as big as the largest icon being generated.\n\n```javascript\n;[\n  {\n    src: `icons/icon-48x48.png`,\n    sizes: `48x48`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-72x72.png`,\n    sizes: `72x72`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-96x96.png`,\n    sizes: `96x96`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-144x144.png`,\n    sizes: `144x144`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-192x192.png`,\n    sizes: `192x192`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-256x256.png`,\n    sizes: `256x256`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-384x384.png`,\n    sizes: `384x384`,\n    type: `image/png`,\n  },\n  {\n    src: `icons/icon-512x512.png`,\n    sizes: `512x512`,\n    type: `image/png`,\n  },\n]\n```\n\nThe automatic mode is the easiest option for most people.\n\n### Hybrid mode\n\nHowever, if you want to include more or fewer sizes, then the hybrid option is for you. Like automatic mode, you should include a high resolution icon to generate smaller icons from. But unlike automatic mode, you provide the `icons` array config and icons are generated based on the sizes defined in your config. Here's an example:\n\n```javascript\n// In your gatsby-config.js\nplugins: [\n  {\n    resolve: `gatsby-plugin-manifest`,\n    options: {\n      name: \"GatsbyJS\",\n      short_name: \"GatsbyJS\",\n      start_url: \"/\",\n      background_color: \"#f7f0eb\",\n      theme_color: \"#a2466c\",\n      display: \"minimal-ui\",\n      icon: src/images/icon.png // This path is relative to the root of the site.\n      icons: [\n        {\n          src: `/favicons/android-chrome-192x192.png`,\n          sizes: `192x192`,\n          type: `image/png`,\n        },\n        {\n          src: `/favicons/android-chrome-512x512.png`,\n          sizes: `512x512`,\n          type: `image/png`,\n        },\n      ],\n    },\n  },\n];\n```\n\nThe hybrid option allows the most flexibility while still not requiring you to create most icons sizes manually.\n\n### Manual mode\n\nIn the manual mode, you are responsible for defining the entire web app manifest and providing the defined icons in the static directory. Only icons you provide will be available. There is no automatic resizing done for you. See the example below:\n\n```javascript\n// In your gatsby-config.js\nplugins: [\n  {\n    resolve: `gatsby-plugin-manifest`,\n    options: {\n      name: \"GatsbyJS\",\n      short_name: \"GatsbyJS\",\n      start_url: \"/\",\n      background_color: \"#f7f0eb\",\n      theme_color: \"#a2466c\",\n      display: \"minimal-ui\",\n      icons: [\n        {\n          // Everything in /static will be copied to an equivalent\n          // directory in /public during development and build, so\n          // assuming your favicons are in /favicons,\n          // you can reference them here\n          src: `/favicons/android-chrome-192x192.png`,\n          sizes: `192x192`,\n          type: `image/png`,\n        },\n        {\n          src: `/favicons/android-chrome-512x512.png`,\n          sizes: `512x512`,\n          type: `image/png`,\n        },\n      ],\n    },\n  },\n]\n```\n","_id":"gatsby-plugin-manifest@2.1.0-alpha.e328d33f","dist":{"shasum":"1a88d48dd96a0277c6e1f6f26837883c7a66e0ee","tarball":"http://registry-npm.ywwl.com/gatsby-plugin-manifest/download/gatsby-plugin-manifest-2.1.0-alpha.e328d33f.tgz","fileCount":8,"unpackedSize":10938,"integrity":"sha512-noRui5XYhnjLHfnbjDvCQD9yjgcvtkw9jbHO1+merbAiT//8eluS5JTkJV/v/oh7CXoFmViQRk2mD3Rf7JF9nA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmodaho8AK9hHZ827Axs97f2pXb7u3CdGif70fTt9irAiBt3cz/HEYKSBqm8osjk1Opce9fUfQHdyVCExHyfeIpFw=="}],"size":3956,"noattachment":false,"key":"/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.1.0-alpha.e328d33f.tgz"},"maintainers":[{"email":"mathews.kyle@gmail.com","name":"kylemathews"},{"email":"michael.allanson@gmail.com","name":"m-allanson"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"},{"email":"misiek.piechowiak@gmail.com","name":"pieh"}],"_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-manifest_2.1.0-alpha.e328d33f_1529177569197_0.4337766690983025"},"_hasShrinkwrap":false,"publish_time":1529177569276,"_cnpm_publish_time":1529177569276,"dist-tags":{"alpha-9689ff":"4.23.0-alpha-9689ff.25","alpha-a5-peer":"4.23.0-alpha-a5-peer.70","alpha-mdx-v2":"4.18.0-alpha-mdx-v2.68","alpha-qe-sm":"3.14.0-alpha-qe-sm.46","alpha-remote-fetch":"3.14.0-alpha-remote-fetch.79","alpha-remote-file":"3.10.0-alpha-remote-file.48","alpha-trailing-slash":"4.5.0-alpha-trailing-slash.71","alpha-transformer-json":"4.14.0-alpha-transformer-json.26","alpha-ts-jit":"4.6.0-alpha-ts-jit.26","alpha-v5":"5.0.0-alpha-v5.d20221012t101120.57","alt-image-cdn":"5.13.0-alpha-alt-image-cdn.44","asset-prefix":"2.0.20-asset-prefix.74","berry-mdx":"2.2.38-berry-mdx.56","coreutils":"3.12.0-coreutils.29","dev-ssr-2":"2.4.25-dev-ssr-2.60","drupal-image-404":"4.17.0-alpha-drupal-image-404.12","drupal-next":"3.14.0-drupal-next.94","drupal-proxyurl":"5.0.0-alpha-drupal-proxyurl.14","drupal-self-reference":"4.18.0-alpha-drupal-self-reference.18","functions-next":"3.4.0-functions-next.18","image-cdn":"4.9.0-alpha-image-cdn.39","image-cdn-caching":"4.16.0-alpha-image-cdn-caching.9","image-cdn-configurable":"5.9.0-image-cdn-configurable.4","image-cdn-enc":"4.23.0-alpha-image-cdn-enc.40","image-cdn-jobs-resolve":"4.18.0-alpha-image-cdn-jobs-resolve.32","image-cdn-pathprefix":"4.25.0-alpha-image-cdn-pathprefix.48","image-cdn-telemetry":"4.13.0-alpha-image-cdn-telemetry.29","image-service":"4.8.0-alpha-image-service.35","incbuild-collections":"2.4.24-incbuild-collections.83","latest":"5.16.0","latest-v3":"3.15.0","latest-v4":"4.25.0","luda":"4.11.0-alpha-luda.30","mdxv4-rc":"4.20.0-mdxv4-rc.65","next":"5.17.0-next.0","otp-test":"2.2.10-otp-test.69","preview-gh-api":"4.23.0-alpha-preview-gh-api.26","prompt-restart":"2.3.4-prompt-restart.83","react19":"5.17.0-react19.1","telemetry-test":"2.7.0-telemetry-test.315","testing-sid3":"2.11.0-testing-sid3.2","unifiedroutes":"2.3.5-unifiedroutes.76","v3rc":"3.0.0-v3rc.0","wordpress-image-err":"4.24.1-alpha-wordpress-image-err.27","wp-image-cdn-auth":"4.15.0-alpha-wp-image-cdn-auth.46"}}