mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 12:42:11 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
606 B
606 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.