We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
static
1 parent ccb2c33 commit 6d241ecCopy full SHA for 6d241ec
packages/workbox/index.js
@@ -49,7 +49,7 @@ function getOptions (moduleOptions) {
49
routerBase,
50
publicPath,
51
swSrc: path.resolve(this.options.buildDir, 'sw.template.js'),
52
- swDest: path.resolve(this.options.srcDir, 'static', 'sw.js'),
+ swDest: path.resolve(this.options.srcDir, this.options.dir.static || 'static', 'sw.js'),
53
directoryIndex: '/',
54
cacheId: process.env.npm_package_name || 'nuxt',
55
clientsClaim: true,
0 commit comments