DockYard / ember-service-worker

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

Embroider compatibility #230

Open enspandi opened 1 year ago

enspandi commented 1 year ago

Using similar approach that prember does @ https://github.com/ef4/prember/tree/master#using-prember-with-embroider


Example:

// ember-cli-build.js

const app = new EmberApp(/* ... */);
const compiledApp = require('@embroider/compat').compatBuild(app /*, ... */);

return require('ember-service-worker').buildServiceWorker(app, compiledApp);