mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 20:19:30 -07:00
feat(plugin/script.html): add support for ESBuild to optimize JavaScript resources
This commit is contained in:
@@ -13,6 +13,9 @@
|
|||||||
{{- with .Template -}}
|
{{- with .Template -}}
|
||||||
{{- $resource = $resource | resources.ExecuteAsTemplate . $.Context -}}
|
{{- $resource = $resource | resources.ExecuteAsTemplate . $.Context -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- with .ToESBuild -}}
|
||||||
|
{{- $resource = $resource | js.Build . -}}
|
||||||
|
{{- end -}}
|
||||||
{{- if .Minify -}}
|
{{- if .Minify -}}
|
||||||
{{- $resource = $resource | minify -}}
|
{{- $resource = $resource | minify -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user