@justeat/f-serviceworker

1.0.1 • Public • Published

f-serviceworker 🐻

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

Sw.register({ swPath: '/subdir/service-worker.js' });

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @justeat/f-serviceworker

    Weekly Downloads

    12

    Version

    1.0.1

    License

    Apache-2.0

    Unpacked Size

    5.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • ilia.chikmarev
    • fidel.montesino
    • anastasiia.horban
    • raouf.sawehli
    • mmakwe-onyeka
    • gregory.palaci
    • arielfdr
    • dawidchar
    • roberto.santana
    • lizzie.turney
    • davidpn.11
    • dandel10n
    • mwh1989
    • kevinrodrigues
    • fozzie-bot
    • ashleynolan
    • simonsje
    • xander-marjoram
    • sergii.semenkiv
    • thomaswilliammcclean
    • benrwhite
    • robertellison
    • zlatin.ivanov
    • joshuang2332
    • oliversweb
    • andymayje
    • jamieomaguire
    • adammorr
    • lsphillips