Combining CSS files into one file

You want to use .Resources.Match to get multiple matches.

Note that the above has “always” been possible. The new thing in Hugo 0.57 was:

{{ $CSS := resources.Match "css/**.css" | resources.Concat "main.css" }}

The above will search in /assets.

2 Likes