node package manager

concat-sourcemaps

Concatenates JavaScript files and their associated source map files.

var concat = require('concat-sourcemaps');
concat(['files/a.js', 'files/b.js'], 'out.js'); // writes source-map to out.js.map

Grunt Task