DESIGN SYSTEM

  • Principles
  • Components
  • Documentation
ASSET MANAGEMENT

Asset minification

Hugo Pipes allows the minification of any CSS, JS, JSON, HTML, SVG or XML resource.

Any resource of the aforementioned types can be minifed using resources.Minify which takes for argument the resource object.

{{ $css := resources.Get "css/main.css" }}
{{ $style := $css | resources.Minify }}
  • Foundation styles (FS)
  • Content text (CT)
  • Buttons and links (BL)
  • Form elements (FE)
  • Icons (IC)
  • Miscellaneous (MS)
“Asset minification” was last updated: July 18, 2018: Add hugo pipes documentation (51388460)
Improve this page
By the Hugo Authors
Hugo Logo
  • File an Issue
  • Get Help
  • Discuss Source Code
  • @GoHugoIO
  • @spf13
  • @bepsays

 
  Hugo Sponsors
Logo for Forestry.io
Logo for Linode
Logo for eSolia
 

The Hugo logos are copyright © Steve Francia 2013–2019.

The Hugo Gopher is based on an original work by Renée French.

  • Principles
  • Components
  • Documentation
  • Foundation styles (FS)
  • Content text (CT)
  • Buttons and links (BL)
  • Form elements (FE)
  • Icons (IC)
  • Miscellaneous (MS)