bundling.md (650B)
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 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.
19
20 ```go-html-template
21 {{ $plugins := resources.Get "js/plugins.js" }}
22 {{ $global := resources.Get "js/global.js" }}
23 {{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
24 ```