concat.dist.dest %>','!<%= uglify.dist %>'], dest: 'www/js/<%= pkg.name %>.js' } }. Note that when using minimatch pattern order is important.
how can I concatenate the files in a specific order? I'm using regexp to concatenate multiple files but I need one of them to be at the end.
If you want to continue to use grunt-contrib-concat, and manually specify your sources explicitly, like you have it should work. What order are ...
I'm using "grunt-contrib-concat": "^1.0.1". Here's gruntfile parts:
Concatenates files respecting declared, required dependencies order.
Here, bar.js is first, followed by the remaining files, in alpha order: {src: ...
In this example, running grunt concat:dist (or grunt concat because concat is a multi task) will concatenate the three specified source files (in order) ...
But while minification is a common task for any build system, file concatenation is also a
Concatenate files and generate a source map file.
If you're using a task runner like Gulp, Grunt, or even Codekit, you're