diff --git a/gulpfile.js b/gulpfile.js index 8e4264634..b8137d0ae 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -281,14 +281,14 @@ task("updateSwCacheName", function () { date.getMinutes() + "-" + date.getSeconds(); - return src(["static/sw.js"]) + return src(["static/js/sw.js"]) .pipe( replace( /const staticCacheName = .*;/g, `const staticCacheName = "sw-cache-${dateString}";` ) ) - .pipe(dest("./dist/")); + .pipe(dest("./dist/js/")); }); task( diff --git a/static/index.html b/static/index.html index 7852705b8..7793b20da 100644 --- a/static/index.html +++ b/static/index.html @@ -89,7 +89,7 @@ > diff --git a/static/sw.js b/static/js/sw.js similarity index 100% rename from static/sw.js rename to static/js/sw.js