Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatsby Plugin "Offline" Service Worker #95

Merged

Conversation

arcticicestudio
Copy link
Contributor

Resolves #94

Integrated gatsby-plugin-offline (1) that adds drop-in support for
making a Gatsby site work offline and more resistant to bad network
connections. It creates a service worker for the site using the great
Workbox (2) project and loads the service worker into the client.

Note that is recommended to use this plugin together with
gatsby-plugin-manifest (3) (GH-91), but ensure that this plugin is
listed after the offline plugin so that the created
`manifest.webmanifest` file can be included in the service worker!

The plugin comes with optimal configurations out-of-the-box. Note that
the offline support can break when changing these options.

References:
  (1) https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-offline
  (2)  https://developers.google.com/web/tools/workbox
  (3) https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest
  (4) https://www.npmjs.com/package/gatsby-plugin-offline

GH-94
@codecov
Copy link

codecov bot commented Dec 20, 2018

Codecov Report

Merging #95 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #95   +/-   ##
========================================
  Coverage    75.46%   75.46%           
========================================
  Files           90       90           
  Lines          326      326           
  Branches        37       37           
========================================
  Hits           246      246           
  Misses          77       77           
  Partials         3        3
Flag Coverage Δ
#unit 75.46% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6415ddc...20fc0f4. Read the comment docs.

@arcticicestudio arcticicestudio merged commit e381f36 into develop Dec 20, 2018
@arcticicestudio arcticicestudio deleted the feature/gh-94-gatsby-plugin-offline-service-worker branch December 20, 2018 07:46
@arcticicestudio arcticicestudio removed their assignment Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants