mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
606 B
606 B
title, description, categories, keywords, action
| 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.