@justeat/f-serviceworker
v1.0.1
Published
Script for registering the service worker
Downloads
88
Maintainers
Keywords
Readme
f-serviceworker :bear:
Contains the registration script for service-worker.js
located in the root of your website.
const sw = require('@justeat/f-serviceworker');
sw.register();
on all pages that should be managed by the service worker.
Optional configuration object can be passed containing the service-worker.js path. Defaults to /service-worker.js
Sw.register({ swPath: '/subdir/service-worker.js' });