Using grunt concat, how would I automate the concatenation of the same file to many other files?
问题 To concatenate two files, it looks something like this: concat: { src: ['common.js','js/app.js'], dest: 'assets/js/app.js' } And if I want to concat an entire folder of files into one, it looks something like this: concat: { src: ['dev/*.js','], dest: 'prod/js/app.js' } But let's say I have a file that I want to concat onto 10 or 20 other files, and I want them to concat separately? In other words, here is what I'm looking for: A.js + B.js = AB.js A.js + C.js = AC.js A.js + D.js = AD.js A.js