mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
---
|
||||
title: Asset minification
|
||||
description: Hugo Pipes allows the minification of any CSS, JS, JSON, HTML, SVG or XML resource.
|
||||
date: 2018-07-14
|
||||
publishdate: 2018-07-14
|
||||
title: Minify
|
||||
linkTitle: Asset minification
|
||||
description: Minifies a given resource.
|
||||
categories: [asset management]
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
parent: "pipes"
|
||||
parent: pipes
|
||||
weight: 50
|
||||
weight: 50
|
||||
sections_weight: 50
|
||||
signature: ["resources.Minify RESOURCE", "minify RESOURCE"]
|
||||
---
|
||||
|
||||
Any resource of the aforementioned types can be minified using `resources.Minify` which takes for argument the resource object.
|
||||
## Usage
|
||||
|
||||
Any CSS, JS, JSON, HTML, SVG or XML resource can be minified using `resources.Minify` which takes for argument the resource object.
|
||||
|
||||
```go-html-template
|
||||
{{ $css := resources.Get "css/main.css" }}
|
||||
|
Reference in New Issue
Block a user