Nerfing Powerful Megalomaniacs
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    speclate-service-workerpublic

    Speclate service worker

    Given a speclate spec, works out which files are needed offline, and generates the service worker accordingly.

    Also provides a network first strategy for specs to ensure users are always seeing the latest data.

     
    'use strict'
    var serviceWorker = require('speclate-service-worker')
    var spec = require('../spec')
    var version = '1.6'
     
    serviceWorker(spec, version)
     

    Keywords

    none

    install

    npm i speclate-service-worker

    Downloadsweekly downloads

    11

    version

    1.4.0

    license

    MIT

    last publish

    collaborators

    • avatar