mirror of https://github.com/gohugoio/hugo
590 B
590 B
title | description | categories | keywords | action | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resources.Minify | Minifies the given resource. |
|
{{ $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.