Permalink
Browse files

fix(workbox): make cacheId independent of npm package version

  • Loading branch information...
pi0 committed Nov 17, 2017
1 parent f384103 commit b744a270e16d418f826ab8035c184b4bbe3d4185
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/workbox/index.js
@@ -49,7 +49,7 @@ function getOptions (moduleOptions) {
swSrc: path.resolve(this.options.buildDir, 'sw.template.js'),
swDest: path.resolve(this.options.srcDir, 'static', 'sw.js'),
directoryIndex: '/',
cacheId: process.env.npm_package_name + '_' + process.env.npm_package_version,
cacheId: process.env.npm_package_name || 'nuxt',
clientsClaim: true,
globPatterns: ['**/*.{js,css}'],
globDirectory: path.resolve(this.options.buildDir, 'dist'),

0 comments on commit b744a27

Please sign in to comment.