Perf: optimize custom.js minify

This commit is contained in:
Cell
2022-09-17 11:45:03 +08:00
parent 74cecb1ff6
commit d6d6638d92
+1 -1
View File
@@ -264,7 +264,7 @@
{{- /* Custom script */ -}}
{{- with ((resources.Get "js/custom.js") | default (resources.Get "js/_custom.js")) -}}
{{- dict "Source" . "Minify" true "Fingerprint" $fingerprint "Defer" true | dict "Scratch" $.Scratch "Data" | partial "scratch/script.html" -}}
{{- dict "Source" . "Minify" hugo.IsProduction "Fingerprint" $fingerprint "Defer" true | dict "Scratch" $.Scratch "Data" | partial "scratch/script.html" -}}
{{- end -}}
{{- with (.Scratch.Get "this").scriptArr -}}