-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
AppCache / ServiceWorker support #192
Comments
What would adding such support entail from user’s point of view? Would we have to generate some files by default that are not used in most apps? Or can those files be optional? |
If by user you mean a user of this project (developer), then for them it means that their app this work offline by default. Of course, if the app is complicated than a static website, then it doesn't mean full offline capability, but rather caching of the app and its assets (all output of webpack). I don't want to came here and just promote usage of
Not sure I get the question, but yes, Also usage of require('offline-plugin/runtime').install(); If it will be the issue, I think it's possible to make plugin auto-attach runtime to the main entry of webpack. |
Oh, one more thing, it cannot work fine with Hot Reloading :-) |
IMO, adding ServiceWorker support in the app is too specific to make it enabled by default. |
I work on the team at Google that develops the We had a similar question about how open the maintainers of this project would be to integration. To give an example of what that might look like, a member of the community, @localnerve, developed https://github.com/localnerve/react-pwa-reference as a boilerplate React project with those libraries baked in. If your preference is to keep what ships by default minimal, or if you'd prefer default integration with another library like CC: @addyosmani |
I'm actually completely fine with using |
I love Also here's a funny story: the first time I used Anyway, that's something that may happen to others. |
Thank you for the suggestion! |
As an exercise, I put together a repo that illustrates the modifications needed "Progressive Web App-ify" the There are details in https://github.com/jeffposnick/create-react-pwa/blob/master/README.md and a rundown of the (minor!) changes that were needed can be found in the diff: jeffposnick/create-react-pwa@starting-point...pwa I'll probably spread the word a bit via my personal blog in case there are other folks who want to manually make those changes to their local |
A new discussion here: #1086 (comment) |
Do you need
AppCache
/ServiceWorker
support in this project? I wrote aoffline-plugin
for webpack and it's currently used inreact-boilerplate
. If you think it would be good to have "offline" support in this project, I will send a PR for it.Thanks.
The text was updated successfully, but these errors were encountered: