Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

speclate-service-worker

3.0.0 • Public • Published

Speclate service worker

Greenkeeper badge

Given a offline-spec.json (generated by the speclate-cli) it 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 offlineSpec = require('../offline-spec')
var version = '1.6'
 
serviceWorker(offlineSpec, version)
 

Keywords

none

Install

npm i speclate-service-worker

DownloadsWeekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

5.69 kB

Total Files

6

Last publish

Collaborators

  • avatar