Skip to content

Conversation

@halfzebra
Copy link
Owner

@halfzebra halfzebra commented Sep 6, 2017

This PR enables us to deploy apps as Progressive Web Apps.

Added SWPrecacheWebpackPlugin and a service worker to serve assets from the local cache.

@fobos @gyzerok @jackfranklin got an opinion?

I just have been to the conference, and I think this is what we should support.

Here's an example of working PWA in Elm that I've made yesterday https://halfzebra.github.io/elm-scrum-cards-pwa/

Added SWPrecacheWebpackPlugin and a service worker to serve assets from local cache
@gyzerok
Copy link
Contributor

gyzerok commented Sep 7, 2017

Seems like a good addition.

One thing that would be nice to have - docs about how to opt-out - what files to remove, what code to delete. I believe they have it described in Create React App.

It might be even better to have some automatic way to opt-out. The benefit would be that you can't mess up by forgetting to do some step. Not sure though how it would look like and how feasible it is. Just an idea.

@halfzebra
Copy link
Owner Author

@gyzerok thanks, I will add the docs and probably merge this 🙂

@jackfranklin
Copy link
Contributor

Nice! I agree that having an opt out would be useful (for some quick apps I build I wouldn't care enough to want this) but love that we have this in!

@fobos
Copy link
Contributor

fobos commented Sep 11, 2017

Just have read the docs. Looks good.
👍

│ └── registerServiceWorker.js
└── tests
├── Tests.elm
└── elm-package.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! 👍

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fobos thanks for checking that out!

@halfzebra halfzebra merged commit ce47a1f into master Sep 12, 2017
@halfzebra halfzebra deleted the add-pwa-support branch September 12, 2017 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants