ember-cli-create icon indicating copy to clipboard operation
ember-cli-create copied to clipboard

Addon proposal: ember-service-worker

Open CodingItWrong opened this issue 7 years ago • 2 comments

I would like to propose a few additional addons to be made available: ember-service-worker and its associated optional plugins:

  • ember-service-worker-index (caches index.html)
  • ember-service-worker-asset-cache (caches static assets: js, css, images, fonts)
  • ember-service-worker-cache-fallback (caches API responses)

Service workers are a major component of adding Progressive Web App functionality to a webapp and giving it parity with native apps. This has been a significant focus of Ember at least since the 2016 Emberconf keynote. And ember-service-worker benefits from Ember's conventions to provide very simple setup. I've even heard that there are discussions about potentially including service workers by default in Ember.

CodingItWrong avatar Sep 10 '18 00:09 CodingItWrong

Do you suggest a new category or one-option-that-installs-many-addons ?

gossi avatar Sep 10 '18 09:09 gossi

It would probably be best as another category, because these plugins are opt-in, and it's designed so you don't necessarily need to use all of 'em. At the same time, they do feel like kind of a low-level concern, so maybe that is a reason to consider not including Service Worker. It's less of a "drop one addon in and you're set" thing.

CodingItWrong avatar Sep 10 '18 09:09 CodingItWrong