-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cant find in documentation how I can test my service worker #677
Comments
@serhii-bilyk-intellias you cannot test offline mode in dev, it is disabled: you need to build the app and use
The code can be found in dev vite plugin: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/src/plugins/dev.ts#L121-L134 |
This is my VitePWA config:
This is my custom service-worker:
My goal is to make application work when offline.
However, I don;t know how I can test it. When I run
npm run dev
and turn off network - I see nothing. I mean nothing is chached.Could you please point me in vite docs which minimum code I need to use to be able to debug service workers.
How I can to trigger some events from service workers from my app ?
stackoverflow question
The text was updated successfully, but these errors were encountered: