The practice of concatenating files is quite often found in the routines of all kinds of developers. Be it combining fragmented log files or many smaller source files into one big code base, joining files end-to-end comes in handy on a regular basis.
Concatenation functionality can be provided to us by the
(0.4.0) plugin. Along with the standard Grunt configurations, it also provides a large set of options to tailor its behavior according to our unique requirements.
In this example, we'll work with the basic project structure we created in the Installing Grunt on a project recipe in Chapter 1, Getting Started with Grunt. Be sure to refer to it if you are not yet familiar with its contents.