@nuxtjs/workbox
Advanced tools
Comparing version 0.4.0 to 1.0.0
{ | ||
"name": "@nuxtjs/workbox", | ||
"version": "0.4.0", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
@@ -12,4 +12,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"workbox-webpack-plugin": "^1.0.1" | ||
"workbox-webpack-plugin": "^1.1.0" | ||
} | ||
} |
# Workbox | ||
[](https://npmjs.com/package/@nuxtjs/workbox) | ||
[](https://npmjs.com/package/@nuxtjs/workbox) | ||
> Workbox is a collection of JavaScript libraries for Progressive Web Apps. ([Learn more](https://github.com/GoogleChrome/workbox)) | ||
> Workbox is a collection of JavaScript libraries for Progressive Web Apps. | ||
([Learn more](https://github.com/GoogleChrome/workbox)) | ||
@@ -8,17 +11,13 @@ This module adds full offline support using workbox. | ||
## Setup | ||
- Add `@nuxtjs/workbox` dependency using yarn or npm to your project | ||
- Add `@nuxtjs/workbox` module to `nuxt.config.js`: | ||
- Add `@nuxtjs/workbox` to `modules` section of `nuxt.config.js` | ||
```js | ||
modules: [ | ||
{ | ||
src: '@nuxtjs/workbox', | ||
options: { | ||
// options | ||
} | ||
} | ||
] | ||
// Simple usage | ||
'@nuxtjs/workbox', | ||
// With options | ||
['@nuxtjs/workbox', { /* options */ }], | ||
] | ||
``` | ||
- Add generated assets to `.gitignore` file: | ||
@@ -29,1 +28,5 @@ ``` | ||
``` | ||
## Options | ||
For list of available options | ||
see [generateSW](https://workboxjs.org/reference-docs/latest/module-workbox-build.html#.generateSW). |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5758
1
31