Skip to content

Commit 6d241ec

Browse files
TrurlMcBytepi0
authored andcommitted
fix(workbox): hardcoded static dir (#73)
1 parent ccb2c33 commit 6d241ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/workbox/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function getOptions (moduleOptions) {
4949
routerBase,
5050
publicPath,
5151
swSrc: path.resolve(this.options.buildDir, 'sw.template.js'),
52-
swDest: path.resolve(this.options.srcDir, 'static', 'sw.js'),
52+
swDest: path.resolve(this.options.srcDir, this.options.dir.static || 'static', 'sw.js'),
5353
directoryIndex: '/',
5454
cacheId: process.env.npm_package_name || 'nuxt',
5555
clientsClaim: true,

0 commit comments

Comments
 (0)