Making PWA with Sapper and the service-worker was quite easy.
Any idea if there will be a PWA adaptor? or a way of adding a service-worker to a a Svelte Kit build? I've been searching everywhere for any information on this.
Hi Joshua. Good question. I didn't spot anything in the early release of Svelte Kit yet. You can add your own service worker and there's some templates and tutorials out there to add them to your Svelte app, but of course that's not as easy as with Sapper. I do remember Sapper having service worker support from early on. So I imagine Svelte Kit will have the same. Though maybe it will be an optional package just like the adapters.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Making PWA with Sapper and the service-worker was quite easy.
Any idea if there will be a PWA adaptor? or a way of adding a service-worker to a a Svelte Kit build? I've been searching everywhere for any information on this.
Thanks!
Hi Joshua. Good question. I didn't spot anything in the early release of Svelte Kit yet. You can add your own service worker and there's some templates and tutorials out there to add them to your Svelte app, but of course that's not as easy as with Sapper. I do remember Sapper having service worker support from early on. So I imagine Svelte Kit will have the same. Though maybe it will be an optional package just like the adapters.