github.com/rabbouni145/gg@v0.47.1/docs/content/en/hugo-pipes/bundling.md (about) 1 --- 2 title: Asset bundling 3 description: Hugo Pipes can bundle any number of assets together. 4 date: 2018-07-14 5 publishdate: 2018-07-14 6 lastmod: 2018-07-14 7 categories: [asset management] 8 keywords: [] 9 menu: 10 docs: 11 parent: "pipes" 12 weight: 60 13 weight: 60 14 sections_weight: 60 15 draft: false 16 --- 17 18 19 Asset files of the same MIME type can be bundled into one resource using `resources.Concat` which takes two arguments, a target path and a slice of resource objects. 20 21 22 ```go-html-template 23 {{ $plugins := resources.Get "js/plugins.js" }} 24 {{ $global := resources.Get "js/global.js" }} 25 {{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }} 26 ```