Perf: disable PWA in the built-in development server

This commit is contained in:
Cell
2024-07-28 23:12:48 +08:00
parent 72a77c2fc5
commit 4065ce606a
+1 -1
View File
@@ -230,7 +230,7 @@
{{- end -}}
{{- /* PWA */ -}}
{{- if .Site.Params.enablePWA | and hugo.IsProduction -}}
{{- if not hugo.IsServer | and .Site.Params.enablePWA | and hugo.IsProduction -}}
{{- $options := dict "targetPath" "service-worker.min.js" "minify" true -}}
{{- $source := resources.Get "js/service-worker.js" | js.Build $options -}}
{{- $_ := $source.RelPermalink -}}