-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Add a default service-worker #1165
Comments
I could try doing a razzle plugin if someone tells/shows me a example of how it should work. |
Some one has a plugin related to this @ https://www.npmjs.com/package/razzle-plugin-serviceworker . I couldn’t get it to work. I ran into some issues with the library it was running under the hood. I ran through jared’s commit @ e5a0248 . I could get the file service-worker.js to load in the browser, however I couldn't get it to work as expected. The commit is pretty self - explanatory of what he wanted to do. |
Did you try razzle-plugin-serviceworker with yarn start or yarn start:prod? |
Nope. I had tested it on the build version. I even deployed it to my test server to test it. |
Using any other plugins or code splitting? |
As it turns out, it was my mistake. I had put the I deployed and it's working. My only concern is previously it had |
Further update based on the behavior I saw: After name change: Closed all tabs that had the application running, and then hit the application. The The I tried changing the |
consider using and I think you should move this issue to razzle-plugin-serviceworker |
On most projects that I've built with razzle, I end up copying create react app's workbox configuration and sw registration. I've written a razzle plugin that does just that: |
@NickCis how can i use injectManifest in razzle-plugin-workbox? |
@benamm you can't. The plugin is just a wrapper for |
Any updates on [ Implement Service Worker caching ] - #276 ?
Or, I'd love to hear about any workarounds people have figured out. Thanks.
The text was updated successfully, but these errors were encountered: