DockYard / ember-service-worker

A pluggable approach to Service Workers for Ember.js
http://ember-service-worker.com
MIT License
238 stars 63 forks source link

Ignore Service Worker Registration #202

Open carrfane opened 3 years ago

carrfane commented 3 years ago

Why?

For my use case, I need to manually register the service worker only if certain conditions are met, for this, I passed a flag to avoid that the plugin registers the service worker, and I register in another place on my app.

How it works?

in your ember-cli-build you pass

'ember-service-worker': { ignoreRegistration: true }

and the plugin will not register the service worker, allowing you to do the registration manually in your app.