This post is all about issues come up when I use gulpjs.
Multiple gulp process flow working with runing tasks in sequence demand.
- 1234567891011121314gulp.task('someTask', function(){if (gulpConfig.multi-dist){const stream = merge();_.forEach(gulpConfig.branches, function (name) {stream.add(gulp.src('biz/*.html').pipe(gulp-plumber(errorHandler)).pipe(gulp-newer('./dest/' + name)).pipe(gulp.dest('./dest/' + name)));})return stream;}});
By doing this, now can run this multiple working flow with other tasks in sequence.
alter gulp dest path through gulp-rename
|
|
|
|