add stock sw.js

This commit is contained in:
David Reed 2022-09-30 21:38:25 -04:00
parent 79505c3a8c
commit 0cd779ffa2
2 changed files with 11 additions and 2 deletions

7
src/sw.js Normal file
View file

@ -0,0 +1,7 @@
importScripts('/uv.bundle.js');
importScripts('/uv.config.js');
importScripts('/uv.sw.js');
const sw = new UVServiceWorker();
self.addEventListener('fetch', (event) => event.respondWith(sw.fetch(event)));