sw-pack

0.1.0 • Public • Published

sw-pack

Build Status Dependency Status

Generate service workers for web-app deployment with offline-first support.

Only supports node 6+

Usage

const packager = require('sw-pack');
 
packager.generate({
  cache: ['index.html', 'style.css', 'https://example.com/script.js'],
  out: './service-worker.js'
});

Features

  • Caches files by hash, only updates files which changed
  • Does not touch cache which is currently in use
  • Can cache external URLs

/sw-pack/

    Package Sidebar

    Install

    npm i sw-pack

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • fiws