-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
ServiceWorker doesn't work #34
Comments
@kwaa you can check this repo, I just hack the EDIT: you will need to download the tgz to your local and install it as a dev dependency: |
Oh, thanks! |
the vite plugin pwa is built using Vite 2, so we just get the 3 plugins destructuring the array: we only need to register a new one for the pwa build plugin using the new Vite 3/ Rollup sequential hook and change the order to just run before the kit one (closeBundle hook in kit plugin will run the adapter, and so, we only need to run it before the kit one with the sequential enabled) |
@kwaa you have some reference for Vite, Rollup and Kit in the repo README file |
ServiceWorker files are not automatically copied to
./build
after updating to the latest versions of SvelteKit and Vite.Progress tracking here, looks like need to wait for vite-pwa/vite-plugin-pwa#327.
But I might be able to create a temporary solution until it updates?
The text was updated successfully, but these errors were encountered: