Skip to content

Instantly share code, notes, and snippets.

@jadjoubran
Last active March 15, 2018 15:03
Show Gist options
  • Save jadjoubran/065f763879a3858223bf2d28284b7392 to your computer and use it in GitHub Desktop.
Save jadjoubran/065f763879a3858223bf2d28284b7392 to your computer and use it in GitHub Desktop.
importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.0.0/workbox-sw.js');
console.log('this is my custom service worker');
workbox.precaching.precacheAndRoute([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment