Skip to content

Commit

Permalink
fix(workbox): make cacheId independent of npm package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Nov 17, 2017
1 parent f384103 commit b744a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit b744a27

Please sign in to comment.