resources.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.
{{ $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.