@nuxtjs/workbox
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.1.5"></a> | ||
## [1.1.5](https://github.com/nuxt/modules/compare/@nuxtjs/workbox@1.1.4...@nuxtjs/workbox@1.1.5) (2017-08-11) | ||
### Bug Fixes | ||
* **workbox:** explicitly provide globDirectory ([6c4f984](https://github.com/nuxt/modules/commit/6c4f984)) | ||
<a name="1.1.4"></a> | ||
@@ -8,0 +19,0 @@ ## [1.1.4](https://github.com/nuxt/modules/compare/@nuxtjs/workbox@1.1.3...@nuxtjs/workbox@1.1.4) (2017-08-06) |
const path = require('path') | ||
const workboxPlugin = require('workbox-webpack-plugin') | ||
const WorkboxPlugin = require('workbox-webpack-plugin') | ||
@@ -28,3 +28,3 @@ const fixUrl = url => url.replace(/\/\//g, '/').replace(':/', '://') | ||
this.options.build.plugins.push(new workboxPlugin(Object.assign({ | ||
this.options.build.plugins.push(new WorkboxPlugin(Object.assign({ | ||
swDest: path.resolve(this.options.srcDir, 'static', swFileName), | ||
@@ -35,2 +35,3 @@ directoryIndex: '/', | ||
globPatterns: ['**\/*.{js,css}'], | ||
globDirectory: this.options.rootDir, | ||
modifyUrlPrefix: { | ||
@@ -37,0 +38,0 @@ '': fixUrl(publicPath) |
{ | ||
"name": "@nuxtjs/workbox", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7426
65