mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
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.