-
Notifications
You must be signed in to change notification settings - Fork 66
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
Service worker introduction #177
Comments
We are using vue-onsenui for mobile and it supports PWA as reported here. |
I'm planning to do an implementation of these three: https://onsen.io/v2/guide/pwa/tutorial.html#service-worker I would need to see which resources to cache on installation of the SW though. |
I'm having troubles including with the webpack configuration. If I require the SW from src/main.js, the service worker is handled by webpack and its name is hashed. When registering the SW you need to specify the path of the file, but since this is generated, I can't provide the right path. I tried including as static resource directly in index.html but then the file file is placed at /static/sw.js. This doesn't work, since the SW needs to be scoped at the very root so it can handle all the requests coming from /index.html My knowledge of webpack is very basic, so I would appreciate any advice given. If not, is there any way I can place the at the same level of index.html? Thank you very much for you help in advance. |
Hi rafmjr, |
@rafmjr any news about the service worker? |
As suggested by @rafmjr in #167 it would be useful to add a Service Worker to make the application a PWA.
The text was updated successfully, but these errors were encountered: