@packmule/service-worker-pack
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Service Worker Pack npm-latest

Configure simple service-worker generation.

Overview

Setup

Service Worker Pack is included in the complete edition.

Current Release

npm install --save-dev @packmule/service-worker-pack

Nightly Build

npm install --save-dev @packmule/service-worker-pack@nightly

API

ServiceWorkerPack()
    .include(glob: string)
    .to(path: string)

Usage

Example

Generate a simple service-worker and pre-cache common files.

import Packmule from '@packmule/core';
import ServiceWorkerPack from '@packmule/service-worker-pack';

const packmule = new Packmule();
packmule.add(new ServiceWorkerPack());
return packmule.generate();

License

MIT


Package Sidebar

Install

npm i @packmule/service-worker-pack

Weekly Downloads

114

Version

2.1.0

License

MIT

Unpacked Size

8.27 kB

Total Files

11

Last publish

Collaborators

  • t.esterer
  • thasmo