4.2.0 • Published 2 months ago

gatsby-plugin-manifest v4.2.0

Weekly downloads
301,866
License
MIT
Repository
github
Last release
2 months ago

gatsby-plugin-manifest

Adds support for shipping a manifest.json with your site. The web application manifest is a JSON file that lets users (on Android Chrome — support in MS Edge & Firefox is under development) save your web application to their smartphone home screen so it behaves similar to native apps.

This article from the Chrome DevRel team is a good intro to the web app manifest—https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

If you're using this plugin together with gatsby-plugin-offline (recommended), this plugin should be listed before the offline plugin so that it can cache the created manifest.json.

Install

npm install --save gatsby-plugin-manifest

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-manifest`,
    options: {
      name: "GatsbyJS",
      short_name: "GatsbyJS",
      start_url: "/",
      background_color: "#f7f0eb",
      theme_color: "#a2466c",
      display: "minimal-ui",
      icons: [
        {
          // Everything in /static will be copied to an equivalent
          // directory in /public during development and build, so
          // assuming your favicons are in /static/favicons,
          // you can reference them here
          src: `/favicons/android-chrome-192x192.png`,
          sizes: `192x192`,
          type: `image/png`,
        },
        {
          src: `/favicons/android-chrome-512x512.png`,
          sizes: `512x512`,
          type: `image/png`,
        },
      ],
    },
  },
];

To create manifest.json, you need to run gatsby build.

octtogatsby-plugin-rave@smartassdesign/gatsby-theme-themify@puzzledbytheweb/gatsby-theme-ecommerce-core@studiobear/gatsby-theme-ionic@studiobear/gatsby-theme-blog@prg/gatsby-theme-bedrock@oddstronaut/gatsby-starter-tailwindjamstack-boilerplate@hacktion/test-librarygatsby-theme-tablexgatsby-theme-sanity-evelanportfolio-gatsbygatsby-theme-ghost-reloadedgatsby-theme-crystyallizegatsby-startyer-crystyallizestate-designer-docs@cangir/gatsby-theme-flex@cangir/gatsby-theme-phoenix@nowseemee/monument@jayellul/gatsby-theme-craftcms@i1r0/gatsby-theme-nehalem@dewen_li/gatsby-theme-bodilessgatsby-theme-kuworking-landing-onewebiu-testgatsby-fassetgatsby-theme-bejamas-coregatsby-theme-fierce-vanillagatsby-theme-lumengatsby-theme-memoriestorichegatsby-theme-katahdingatsby-theme-factlygatsby-prosty-szablon-1theme-gatsby-shopifygatsby-theme-jdoefriday.de@meetup/build-meetup-web-componentsnuven-code-editorsix-foot-six-designsgatsby-theme-cumberland@fujuntao/use-form-websitefielder-docsgatsby-typescript-default-startergatsby-typescript-material-ui-startergatsby-typescript-tailwind-starter@afuh/gatsby-theme-up42@up42/gatsby-theme-up42@garytee/gatsby-woo-elementorgatsby-woocommerce-elementor-theme@leptest/gatsby-netlify-cmsgatsby-theme-wom-browsegatsby-theme-wom-cartgatsby-theme-wom-checkoutgatsby-theme-wom-logingatsby-starter-essentials@whey/gatsby-theme-whey@weknow/gatsby-theme-drupal-boina@wesleylhandy/gatsby-theme-author-base@westegg/gatsby-theme-jasper@westegg/gatsby-theme-recipes@zairon87/gatsby-theme-pixafy@zedvision/zedvision-site@xops.net/gatsby-openrpc-themegatsby-emotion-tailwind-starter@supervenz/service-industry-lead-collectorblunchers-wwwgatsby-theme-albumgatsby-theme-providence@matthieuauger/gatsby-theme-meetupbch-wallet-plugin-boilerplateinvbeertoryjonasbroms-wwwjay-blogitsalljs-docs-themeklair.cokk-gatsby-themelisixianmicmax.pwob-frontendodduse-wwwocular-gatsbyocidnoskfiomochi-ui-themereact-ui-docresium-sat-trackerremigespatrickarlt-gatsby-test-theme-1pl-hatchlabs-styles-testpersonal-sitereact-dsxmbernetinaked_doclmnts-gatsby-ts-skeletonseeds-docssenoveeshipityohemingway-clihemingway-doc-generatorraylogrocketbelt
4.2.0-next.1

2 months ago

4.2.0-next.2

2 months ago

4.2.0

2 months ago

4.1.4

2 months ago

4.1.3

2 months ago

4.1.2

2 months ago

4.1.1

2 months ago

4.3.0-next.0

2 months ago

4.3.0-next.1

2 months ago

4.2.0-next.0

3 months ago

4.1.0

3 months ago

4.0.0

3 months ago

4.1.0-next.0

3 months ago

4.0.0-zz-next.4

3 months ago

4.0.0-zz-next.2

4 months ago

4.0.0-zz-next.3

3 months ago

3.14.0

4 months ago

4.0.0-next.2

4 months ago

4.0.0-zz-next.1

4 months ago

4.0.0-zz-next.0

4 months ago

4.0.0-next.1

4 months ago

4.0.0-next.0

4 months ago

3.14.0-next.2

5 months ago

3.14.0-next.1

5 months ago

3.13.0

5 months ago

3.14.0-next.0

5 months ago

3.13.0-next.3

5 months ago

3.13.0-next.2

5 months ago

3.13.0-next.1

5 months ago

3.12.0

5 months ago

3.13.0-next.0

5 months ago

3.12.0-next.3

6 months ago

3.12.0-next.2

6 months ago

3.12.0-next.1

6 months ago

3.11.0

6 months ago

3.12.0-next.0

6 months ago

3.10.0

6 months ago

3.11.0-next.0

6 months ago

3.10.0-next.1

7 months ago

3.9.0

7 months ago

3.10.0-next.0

7 months ago

3.9.0-next.1

7 months ago

3.8.0

7 months ago

3.9.0-next.0

7 months ago

3.8.0-next.0

8 months ago

3.8.0-next.1

8 months ago

3.6.0

8 months ago

3.7.1

8 months ago

3.7.0

8 months ago

3.7.0-next.2

8 months ago

3.7.0-next.1

8 months ago

3.5.0-next.0

9 months ago

3.6.0-next.0

9 months ago

3.5.0

8 months ago

3.4.0

9 months ago

3.4.0-next.3

9 months ago

3.7.0-next.0

8 months ago

3.4.0-next.1

9 months ago

3.3.0

9 months ago

3.4.0-next.0

10 months ago

3.3.0-next.1

10 months ago

3.2.0

10 months ago

3.3.0-next.0

10 months ago

3.1.0

10 months ago

3.2.0-next.0

11 months ago

3.1.0-next.2

11 months ago

3.0.0

11 months ago

3.0.0-v3rc.0

11 months ago

3.1.0-next.1

11 months ago

3.1.0-next.0

11 months ago

3.0.0-next.2

11 months ago

2.12.1

11 months ago

3.0.0-next.1

11 months ago

3.0.0-next.0

12 months ago

2.13.0-next.1

12 months ago

2.12.0

12 months ago

2.13.0-next.0

12 months ago

2.12.0-next.1

12 months ago

2.11.0

1 year ago

2.12.0-next.0

1 year ago

2.11.0-next.1

1 year ago

2.10.0

1 year ago

2.11.0-next.0

1 year ago

2.10.0-next.2

1 year ago

2.9.1

1 year ago

2.10.0-next.1

1 year ago

2.9.0

1 year ago

2.10.0-next.0

1 year ago

2.9.0-next.2

1 year ago

2.9.0-next.1

1 year ago

2.8.0

1 year ago

2.9.0-next.0

1 year ago

2.7.0

1 year ago

2.8.0-next.0

1 year ago

2.6.1

1 year ago

2.7.0-next.1

1 year ago

2.6.0

1 year ago

2.6.0-next.1

1 year ago

2.7.0-next.0

1 year ago

2.6.0-next.0

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

2.5.0

1 year ago

2.4.36

1 year ago

2.4.37

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

2.4.21

1 year ago

2.4.20

2 years ago

2.4.19

2 years ago

2.4.18

2 years ago

2.4.17

2 years ago

2.4.16

2 years ago

2.4.14

2 years ago

2.4.13

2 years ago

2.4.12

2 years ago

2.4.11

2 years ago

2.4.10

2 years ago

2.4.9

2 years ago

2.4.7

2 years ago

2.4.8

2 years ago

2.4.6

2 years ago

2.4.5

2 years ago

2.4.4

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.3.7

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.4

2 years ago

2.3.3

2 years ago

2.3.2

2 years ago

2.3.0

2 years ago

2.3.1

2 years ago

2.2.48

2 years ago

2.2.47

2 years ago

2.2.46

2 years ago

2.2.45

2 years ago

2.2.44

2 years ago

2.2.43

2 years ago

2.2.42

2 years ago

2.2.41

2 years ago

2.2.40

2 years ago

2.2.39

2 years ago

2.2.38

2 years ago

2.2.37

2 years ago

2.2.36

2 years ago

2.2.34

2 years ago

2.2.33

2 years ago

2.2.31

2 years ago

2.2.30

2 years ago

2.2.29

2 years ago

2.2.28

2 years ago

2.2.27

2 years ago

2.2.26

2 years ago

2.2.25

2 years ago

2.2.24

2 years ago

2.2.23

2 years ago

2.2.22

2 years ago

2.2.21

2 years ago

2.2.20

2 years ago

2.2.18

2 years ago

2.2.17

2 years ago

2.2.16

2 years ago

2.2.15

2 years ago

2.2.14

2 years ago

2.2.13

2 years ago

2.2.12

2 years ago

2.2.11

2 years ago

2.2.10

2 years ago

2.2.9

2 years ago

2.2.8

2 years ago

2.2.7

2 years ago

2.2.6

2 years ago

2.2.5

2 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.29

3 years ago

2.0.28

3 years ago

2.0.27

3 years ago

2.0.26

3 years ago

2.0.25

3 years ago

2.0.24

3 years ago

2.0.23

3 years ago

2.0.22

3 years ago

2.0.21

3 years ago

2.0.21-alpha.0

3 years ago

2.0.20

3 years ago

2.0.19

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.2-rc.1

3 years ago

2.0.2-rc.0

3 years ago

2.0.2-beta.7

3 years ago

2.0.2-beta.6

3 years ago

2.0.2-beta.5

3 years ago

2.0.2-beta.4

3 years ago

2.0.2-beta.3

4 years ago

2.0.2-beta.2

4 years ago

2.0.2-beta.1

4 years ago

2.0.2-beta.0

4 years ago

1.0.27

4 years ago

2.0.2-alpha.2

4 years ago

2.0.2-alpha.1

4 years ago

2.0.1-20

4 years ago

1.0.26

4 years ago

2.0.1-19

4 years ago

2.0.1-18

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

2.0.1-17

4 years ago

2.0.1-16

4 years ago

2.0.1-15

4 years ago

2.0.1-14

4 years ago

1.0.23

4 years ago

2.0.1-13

4 years ago

2.0.1-12

4 years ago

1.0.22

4 years ago

2.0.1-10

4 years ago

2.0.1-9

4 years ago

2.0.1-8

4 years ago

2.0.1-7

4 years ago

2.0.1-6

4 years ago

2.0.1-5

4 years ago

1.0.21

4 years ago

2.0.1-4

4 years ago

2.0.1-3

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

2.0.1-2

4 years ago

2.0.1-1

4 years ago

1.0.15

4 years ago

2.0.1-0

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

2.0.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-alpha.23

5 years ago

1.0.0-alpha.22

5 years ago

1.0.0-alpha19

5 years ago

1.0.0-alpha17

5 years ago

1.0.0-alpha14

5 years ago

1.0.0-alpha13

5 years ago

1.0.0-alpha12

5 years ago