1
0

fix(sw): remove debug option via env as it would not be replaced correctly in prod builds

This commit is contained in:
kolaente
2023-12-13 18:37:56 +01:00
parent 75035ec1f8
commit 0730955403
3 changed files with 0 additions and 3 deletions

View File

@ -11,7 +11,6 @@ const workboxVersion = 'v7.0.0'
importScripts(`${fullBaseUrl}workbox-${workboxVersion}/workbox-sw.js`)
workbox.setConfig({
modulePathPrefix: `${fullBaseUrl}workbox-${workboxVersion}`,
debug: Boolean(import.meta.env.VITE_WORKBOX_DEBUG),
})
import { precacheAndRoute } from 'workbox-precaching'