Tasks can be streamlined so that conditional pipe processing can occur, enabling some tasks for "build" and probably "dist" to be collapsed. See this example from gulp-util:
// gulp should be called like this :
// $ gulp --type production
gulp.task('scripts', function() {
gulp.src('src/**/*.js')
.pipe(concat('script.js'))
.pipe(gutil.env.type === 'production' ? uglify() : gutil.noop())
.pipe(gulp.dest('dist/');
});
Tasks can be streamlined so that conditional pipe processing can occur, enabling some tasks for "build" and probably "dist" to be collapsed. See this example from gulp-util: