From 49dfe3aa3e7836c6c0fa921ab2b74535b10b7fc9 Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 20 May 2024 14:56:19 +0800 Subject: [PATCH] Update nuxt.config.ts --- nuxt.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 59763cb..0c08e32 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -26,7 +26,7 @@ export default defineNuxtConfig({ ] } }, - pwa: { + pwa: !sw ? {} : { strategies: sw ? 'injectManifest' : 'generateSW', srcDir: sw ? 'service-worker' : undefined, filename: sw ? 'sw.ts' : undefined, -- GitLab