@nuxtjs/workbox
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="2.2.0"></a> | ||
# [2.2.0](https://github.com/nuxt-community/pwa-module/compare/@nuxtjs/workbox@2.1.1...@nuxtjs/workbox@2.2.0) (2018-03-05) | ||
### Features | ||
* Add support of StrategyOptions to cache ([b17bbd0](https://github.com/nuxt-community/pwa-module/commit/b17bbd0)) | ||
<a name="2.1.1"></a> | ||
@@ -8,0 +20,0 @@ ## [2.1.1](https://github.com/nuxt-community/pwa-module/compare/@nuxtjs/workbox@2.1.0...@nuxtjs/workbox@2.1.1) (2017-11-27) |
{ | ||
"name": "@nuxtjs/workbox", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,4 +7,6 @@ importScripts(<%= options.importScripts.map(i => `'${i}'`).join(', ') %>) | ||
<% options.runtimeCaching.forEach(r => { %> | ||
workboxSW.router.registerRoute(new RegExp('<%= r.urlPattern %>'), workboxSW.strategies.<%= r.handler %>({}), '<%= r.method %>') | ||
<% options.runtimeCaching.forEach(r => { | ||
const strategy = JSON.stringify(r.strategyOptions || {}) | ||
%> | ||
workboxSW.router.registerRoute(new RegExp('<%= r.urlPattern %>'), workboxSW.strategies.<%= r.handler %>(<%= strategy %>), '<%= r.method %>') | ||
<% }) %> |
13278
174