From c76a5f2c52fa1e94faf867d8884c47ca251b1060 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 15 Sep 2020 13:19:47 +0100 Subject: [PATCH] Attempt to fix tests some more --- package.json | 3 +- res/sw.js | 1 - scripts/copy-res.js | 1 - src/vector/index.html | 10 - src/vector/index.ts | 2 +- webpack.config.js | 20 +- yarn.lock | 1207 ++++++++++++++++++++++++++++++++++++++++- 7 files changed, 1220 insertions(+), 24 deletions(-) delete mode 100644 res/sw.js diff --git a/package.json b/package.json index 0a151e0e28..5835edba39 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,8 @@ "typescript": "^3.7.3", "webpack": "^4.41.2", "webpack-cli": "^3.3.10", - "webpack-dev-server": "^3.9.0" + "webpack-dev-server": "^3.9.0", + "workbox-webpack-plugin": "^5.1.4" }, "jest": { "testEnvironment": "jest-environment-jsdom-fourteen", diff --git a/res/sw.js b/res/sw.js deleted file mode 100644 index 038b82c9b4..0000000000 --- a/res/sw.js +++ /dev/null @@ -1 +0,0 @@ -self.addEventListener('fetch',() => {}); diff --git a/scripts/copy-res.js b/scripts/copy-res.js index ebe1c625ea..6c55f3d5dd 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -61,7 +61,6 @@ const INCLUDE_LANGS = [ // "dest/b/...". const COPY_LIST = [ ["res/manifest.json", "webapp"], - ["res/sw.js", "webapp"], ["res/welcome.html", "webapp"], ["res/welcome/**", "webapp/welcome"], ["res/themes/**", "webapp/themes"], diff --git a/src/vector/index.html b/src/vector/index.html index 4cda4b37a5..3ddc8482fb 100644 --- a/src/vector/index.html +++ b/src/vector/index.html @@ -55,16 +55,6 @@
- - - - - - - - - -