-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsw.js
27 lines (23 loc) · 1.38 KB
/
sw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
importScripts('https://storage.googleapis.com/workbox-cdn/releases/6.3.0/workbox-sw.js');
// import * as googleAnalytics from 'workbox-google-analytics';
// googleAnalytics.initialize();
if (workbox) {
console.log(`Yay! Workbox is loaded 🎉`);
workbox.precaching.precacheAndRoute([
{url: 'index.html', revision: '383676' },
{url: 'manifest.json', revision: null},
// {url: 'node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js', revision: null},
// {url: 'node_modules/lit/polyfill-support.js', revision: null},
{url: 'images/favicon.ico', revision: null },
// {url: '/deploy/application-shell.js', revision: null },
// {url: 'https://www.gstatic.com/firebasejs/7.18.0/firebase-app.js', revision: null },
// {url: 'https://www.gstatic.com/firebasejs/7.18.0/firebase-auth.js', revision: null },
// {url: 'https://www.gstatic.com/firebasejs/7.18.0/firebase-firestore.js', revision: null },
// {url: 'https://www.gstatic.com/firebasejs/7.18.0/firebase-storage.js', revision: null },
// {url: 'https://www.gstatic.com/firebasejs/7.18.0/firebase-messaging.js', revision: null },
// {url: 'https://www.gstatic.com/firebasejs/7.18.0/firebase-analytics.js', revision: null },
//{url: '/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js', revision: null },
]);
} else {
console.log(`Boo! Workbox didn't load 😬`);
}