@justeat/f-serviceworker

Script for registering the service worker

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@justeat/f-serviceworker
101.0.14 years ago5 years agoMinified + gzip package size for @justeat/f-serviceworker in KB

Readme

f-serviceworker :bear:
npm version Build Status install size
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
```javascript Sw.register({ swPath: '/subdir/service-worker.js' }); ```