Generate a service worker to cache resources and make them available offline.
Install
npm install --save-dev fly-precache
API
.precache(options)
A full list of sw-precache
options can be found here.
Usage
Cache assets within the dist
directory. This will create a dist/sw
directory that contains two dependencies for the dist/service-worker.js
.
exports { flysource'dist/**/*.{js,html,css,png,jpg,gif}' target'dist';}
License
MIT © Luke Edwards