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
How to generate sw.js with precaching after prerendering with vite-plugin-ssr #258
Comments
@robotpapier you should use I'm not familiar with SSR Apps, I only use it on SSG: You can also check for example the script on docs when building using |
@robotpapier check this issue antfu-collective/vitesse#159 |
Thanks for the hints, I'll have look! |
@robotpapier how did it go? |
@redbar0n Hi, I don't remember what I did with this plugin but now I use Sveltekit to pwa any pages I want using manifest files |
Hi,
I am using vite-plugin-pwa with vite-plugin-ssr
but it seems like the plugin generates the sw.js file with the precaching path before vite-plugin-ssr prerenders for production.
Resulting in my routes present in the sw.js and are not cached.
How can tel vite-plugin-pwa to generate the sw.js file after vite-plugin-ssr prerender ?
The text was updated successfully, but these errors were encountered: