gulp.task('copy-template', function() {
for(var i = 0; i < directory.length; i++) {
gulp.src(directory[i] + '**/*.*')
.pipe(gulp.dest(directory[i] + 'template/'));
}
return true;
});
import * as merge2 from 'merge2';
gulp.task('copy-template', ()=>{
let tasks=[];
for(var i = 0; i < directory.length; i++) {
tasks.push(gulp.src(directory[i] + '**/*.*')
.pipe(gulp.dest(directory[i] + 'template/')));
}
return merge2(tasks);
});