From b7096d86464152ee9b1885a862fc5388bf5ad3f8 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Mon, 7 Jun 2021 18:40:05 +0200 Subject: [PATCH] tests on service worker --- frontend/vue.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/vue.config.js b/frontend/vue.config.js index 147db28..b31de94 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -7,12 +7,17 @@ module.exports = { appleMobileWebAppCache: "yes", manifestOptions: { display: 'standalone', + }, + workboxPluginMode: 'InjectManifest', + workboxOptions: { + swSrc: 'src/registerServiceWorker.js' } }, configureWebpack: { plugins: [new GenerateSW({ clientsClaim: true, skipWaiting: true, + cleanupOutdatedCaches: true, navigateFallback: 'index.html', })], output: {