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.
- Host: GitHub
- URL: https://github.com/devinus/metalsmith-service-worker
- Owner: devinus
- License: cc0-1.0
- Created: 2017-08-07T06:58:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T16:02:45.000Z (about 8 years ago)
- Last Synced: 2025-02-12T03:48:09.410Z (over 1 year ago)
- Language: JavaScript
- Size: 82 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metalsmith-service-worker
[](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` |