I need help. I have this code. I have many sources and i don't use n*source watchs. I thinked that a for can be a solution, but the watch is instantiated and it dont read my source[i].
You can say some solutions.
Thnks!
var base_source = '../';
var source = ['dir1', 'dir2'];
var allFiles = '/**/*';
var dest = '../dist';
gulp.task('default', function () {
      for(var i = 0; i < source.length ; i++) {
        var watchW = base_source + source[i] + allFiles;
        gulp.watch(watchW, function(obj){
          copyFiles(watchW, dest , obj);
        });
      }
    }
Edit: I need the source[i] in copyFiles function
Sorry for my english ^^"
 
    