Skip to content

Commit

Permalink
fix(workbox): hardcoded static dir (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrurlMcByte authored and pi0 committed Aug 24, 2018
1 parent ccb2c33 commit 6d241ec
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) {
routerBase,
publicPath,
swSrc: path.resolve(this.options.buildDir, 'sw.template.js'),
swDest: path.resolve(this.options.srcDir, 'static', 'sw.js'),
swDest: path.resolve(this.options.srcDir, this.options.dir.static || 'static', 'sw.js'),
directoryIndex: '/',
cacheId: process.env.npm_package_name || 'nuxt',
clientsClaim: true,
Expand Down

0 comments on commit 6d241ec

Please sign in to comment.