Skip to content

Instantly share code, notes, and snippets.

@alfredbez
Created October 24, 2014 07:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredbez/f6d9107a902f859d871c to your computer and use it in GitHub Desktop.
Save alfredbez/f6d9107a902f859d871c to your computer and use it in GitHub Desktop.

using multiple Arrays in gulp.src

var gulp = require('gulp');

gulp.task('build', function() {
    var srcFiles = ['file1.js', 'file2.js'],
        otherSrcFiles = ['file3.js', 'file4.js'];
    gulp.src(srcFiles.concat(otherSrcFiles));
});

gulp.task('default', ['build']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment