Reputation: 9938
I'd like to have something likes this:
app.import('path/to/file.js');
app.import('path/to/file.css');
And it would concate everything. Is there a way using Grunt?
Upvotes: 0
Views: 20
Reputation: 2184
This is documented in the sample gruntfile on the Grunt site.
http://gruntjs.com/sample-gruntfile
Use the standard grunt file specifications. How to specify files is here:
http://gruntjs.com/configuring-tasks#files
Note that you do not have to add files one at a time. That's why they allow wild cards. You specify entire directory trees if you want. And mostly this is what you want. Study the file glob patterns on the grunt site. There are lots of examples too.
Upvotes: 1