mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
717 B
717 B
title | description | categories | keywords | action | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resources.Concat | Concatenates a slice of resources. |
|
{{ $plugins := resources.Get "js/plugins.js" }}
{{ $global := resources.Get "js/global.js" }}
{{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
Asset files of the same media type can be bundled into one resource using the resources.Concat
function which takes two arguments, the target path for the created resource bundle and a slice of resource objects to be concatenated.