These notes are unpolished collections of thoughts, unfinished ideas, and things I want to remember later. In the spirit of learning in public, I'm sharing them here. Have fun exploring, if you want!

Turning a Gatsby Site into a Progressive Web App

Tags: [[Gatsby]] [[Drafts]]

🔗Add gatsby-plugin-manifestAdd gatsby-plugin-manifest

🔗Add gatsby-plugin-offlineAdd gatsby-plugin-offline

Check to see if there are updates:

const onServiceWorkerUpdateReady = () => {
const answer = window.confirm(
'This application has been updated. ' +
'Reload to display the latest version?'
if (answer === true) {
export { onServiceWorkerUpdateReady, shouldUpdateScroll, wrapPageElement };

© 2021 Ben Robertson

Proudly built with Gatsby.