- From: Rainmen-xia <notifications@github.com>
- Date: Sat, 31 Jul 2021 08:34:13 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 31 July 2021 15:34:25 UTC
thanks for reply。 I cannot find a way to reuse my service worker lib。 I cannot publish my serviceworker lib like any other node_modules; What does "must live a t an updateable URL " mean? How can I use it just like anyother worker ,created by javascripts dynamic。 People who want to reuse my sw lib, must create a "sandbox.html" file,a "sw.js" file,then set up a static server . regist the sw in the sandbox.html. and then importScripts my sw-lib in the "sw.js". Because I need to Intercept the fetch event,service worker is the only way to do this. I cannot find a nice way to reuse my sw-lib. can you give me any suggestion? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1601#issuecomment-890365380
Received on Saturday, 31 July 2021 15:34:25 UTC