feat(plugin/script.html): add support for ESBuild to optimize JavaScript resources

This commit is contained in:
Sped0n
2023-10-31 00:07:27 +08:00
parent bffd43c6cc
commit bf859ebed9

View File

@@ -13,6 +13,9 @@
{{- with .Template -}}
{{- $resource = $resource | resources.ExecuteAsTemplate . $.Context -}}
{{- end -}}
{{- with .ToESBuild -}}
{{- $resource = $resource | js.Build . -}}
{{- end -}}
{{- if .Minify -}}
{{- $resource = $resource | minify -}}
{{- end -}}