From 67cd0d0a20d21a57d02e5569db5825776356da9a Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 31 Jan 2022 15:29:26 +0100 Subject: [PATCH] Revert "moved sw.js to static" This reverts commit fc3efc20a4debd292d840eb56c445be68b7e6514. --- 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 b8137d0ae..8e4264634 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -281,14 +281,14 @@ task("updateSwCacheName", function () { date.getMinutes() + "-" + date.getSeconds(); - return src(["static/js/sw.js"]) + return src(["static/sw.js"]) .pipe( replace( /const staticCacheName = .*;/g, `const staticCacheName = "sw-cache-${dateString}";` ) ) - .pipe(dest("./dist/js/")); + .pipe(dest("./dist/")); }); task( diff --git a/static/index.html b/static/index.html index 7793b20da..7852705b8 100644 --- a/static/index.html +++ b/static/index.html @@ -89,7 +89,7 @@ > diff --git a/static/js/sw.js b/static/sw.js similarity index 100% rename from static/js/sw.js rename to static/sw.js