How to register custom service worker? #14916
Unanswered
SebastianStehle
asked this question in
Q&A
Replies: 1 comment
-
Any updates? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am migrating from webpack and I am not sure yet, how to register a custom service worker. In webpack I have just registered an additional entry for the service worker file, but I am not sure if this is the way to go. Because vite works so differently in dev mode.
How do i get the URL that I need for the call to
navigator.serviceWorker.register(...)
Beta Was this translation helpful? Give feedback.
All reactions