An open API service indexing awesome lists of open source software.

https://github.com/devinus/metalsmith-service-worker

A Metalsmith plugin to generate a service worker cache.
https://github.com/devinus/metalsmith-service-worker

Last synced: 7 months ago
JSON representation

A Metalsmith plugin to generate a service worker cache.

Awesome Lists containing this project

README

          

# metalsmith-service-worker

[![Build Status](https://travis-ci.org/devinus/metalsmith-service-worker.svg?branch=master)](https://travis-ci.org/devinus/metalsmith-service-worker)

A Metalsmith plugin to generate a service worker cache.

## Install

```sh-session
$ npm install metalsmith-service-worker --save
```

## Usage

```js
const serviceWorker = require('metalsmith-service-worker');
metalsmith.use(serviceWorker(options));
```

## Options

| Name | Default |
|--------------------|----------------------------------|
| `cacheName` | `metalsmith-service-worker` |
| `workerFile` | `service-worker.js` |
| `registrationFile` | `service-worker-registration.js` |