From fc3efc20a4debd292d840eb56c445be68b7e6514 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 31 Jan 2022 14:26:19 +0100 Subject: [PATCH] moved sw.js to static --- gulpfile.js | 4 ++-- static/index.html | 2 +- static/{ => js}/sw.js | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename static/{ => js}/sw.js (100%) 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