@nuxtjs/workbox
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.1.1"></a> | ||
## [1.1.1](https://github.com/nuxt/modules/compare/@nuxtjs/workbox@1.1.0...@nuxtjs/workbox@1.1.1) (2017-07-19) | ||
### Bug Fixes | ||
* **workbox:** don't use regexs ([19502d9](https://github.com/nuxt/modules/commit/19502d9)) | ||
<a name="1.1.0"></a> | ||
@@ -8,0 +19,0 @@ # [1.1.0](https://github.com/nuxt/modules/compare/@nuxtjs/workbox@1.0.1...@nuxtjs/workbox@1.1.0) (2017-07-19) |
@@ -5,3 +5,2 @@ const path = require('path') | ||
const fixUrl = url => url.replace(/\/\//g, '/').replace(':/', '://') | ||
const wildcardRegex = url => '/' + fixUrl(url + '/.*').replace(/\//g, '\\/') + '/' | ||
const isUrl = url => url.indexOf('http') === 0 || url.indexOf('//') === 0 | ||
@@ -43,3 +42,3 @@ | ||
{ | ||
urlPattern: wildcardRegex(publicPath), | ||
urlPattern: fixUrl(publicPath + '/**'), | ||
handler: 'cacheFirst' | ||
@@ -49,3 +48,3 @@ }, | ||
{ | ||
urlPattern: wildcardRegex(routerBase), | ||
urlPattern: fixUrl(routerBase + '/**'), | ||
handler: 'networkFirst' | ||
@@ -52,0 +51,0 @@ } |
{ | ||
"name": "@nuxtjs/workbox", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6478
64