resources.Minify
Minifies the given resource.
Syntax
resources.Minify RESOURCE
Returns
resource.Resource
Alias
minify
{{ $css := resources.Get "css/main.css" }}
{{ $style := $css | minify }}Any CSS, JS, JSON, HTML, SVG, or XML resource can be minified using resources.Minify which takes for argument the resource object.
Last updated:
April 10, 2025
:
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65' (283e97783)
Improve this page