mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
⚡ Perf: disable PWA in the built-in development server
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user