I think you can also use service-worker.js in gh-page, if you already using that, you can try doing it in gh-page first.
Just like this example https://github.com/linonetwo/ipfs-browser-gateway/tree/gh-pages 在 2020年4月15日星期三 UTC+8下午4:04:37,Mohammad写道: > > Hi Lin, > Many thanks! This wonderful. I uses gh-pages, but I give a try on now.sh > > Cheers > Mohammad > > On Wednesday, April 15, 2020 at 11:53:59 AM UTC+4:30, LinOnetwo wrote: >> >> Hi, Mohammad, >> >> For now, I'm just using a RawMarkup tiddler, as in the attachment, to >> load the service-worker.js served in /service-worker.js >> >> So you may have to serve your HTML wiki along with service-worker.js >> >> I think it is very easy to use, if you are using a static server (for >> example gh-page, or now.sh ) to serve your wiki. (I'm using now.sh to auto >> bundle NodeJS wiki to HTML wiki) >> >> PWA is progressive, won't hurt any basic function, and it is getting >> widely adapted these days. >> I'll do more experiment on it, maybe one day I will open a PR, letting >> service worker to be build into the main tiddlywiki. >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/00b7739d-b53b-4019-9640-1b05dbdeabb0%40googlegroups.com.
