-
-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
Hi there,
thanks for the great library. Are these Service Worker without PWA capabilities instructions still valid?
I created a new Vite app with react-ts@latest
template, and copy-paste the linked config into the Vite config, but can't seem to get the service worker to respond with npm run dev
.
I can see that the custom vite-plugin-pwa:
event is firing and kicks off some mode checks (if "inline"
, etc), but I don't see the actual script being registered.
The only change I made from the example
self.addEventListener("fetch", (event) => {
console.info("***** Handle fetch");
event.respondWith(fetch(event.request));
});
Metadata
Metadata
Assignees
Labels
No labels