Changing separator when concatenating js files

Thanks to Kalen Johnson’s answer to a similar question, I finally got this working. See my comment on Gulp minifyCss and CSS Special Comments.

Basically, it required changing the following line in Sage’s gulpfile.js:

.pipe($.concat, filename)

to:

.pipe(function(filename) {
  return $.concat(filename, {newLine: ';'});
}, filename)

I’m not 100% sure it’s the correct way, but it seems to work.