@nuxtjs/workbox
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -6,2 +6,8 @@ # Change Log | ||
<a name="1.1.2"></a> | ||
## [1.1.2](https://github.com/nuxt/modules/compare/@nuxtjs/workbox@1.1.1...@nuxtjs/workbox@1.1.2) (2017-07-31) | ||
<a name="1.1.1"></a> | ||
@@ -8,0 +14,0 @@ ## [1.1.1](https://github.com/nuxt/modules/compare/@nuxtjs/workbox@1.1.0...@nuxtjs/workbox@1.1.1) (2017-07-19) |
11
index.js
@@ -34,2 +34,3 @@ const path = require('path') | ||
globPatterns: ['**\/*.{js,css,html,json}'], | ||
globIgnores: '**/server-bundle.json', | ||
modifyUrlPrefix: { | ||
@@ -39,2 +40,7 @@ '': fixUrl(publicPath) | ||
runtimeCaching: [ | ||
// Cache routes if offline | ||
{ | ||
urlPattern: fixUrl(routerBase + '/**'), | ||
handler: 'networkFirst' | ||
}, | ||
// Cache other _nuxt resources runtime | ||
@@ -46,7 +52,2 @@ // They are hashed by webpack so are safe to loaded by cacheFirst handler | ||
}, | ||
// Cache routes if offline | ||
{ | ||
urlPattern: fixUrl(routerBase + '/**'), | ||
handler: 'networkFirst' | ||
} | ||
] | ||
@@ -53,0 +54,0 @@ }, options))) |
{ | ||
"name": "@nuxtjs/workbox", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6657
65