gulp stop/cancel running task -
how can cancel/stop current running task in gulp?
my task:
gulp.task('scripts', function() { return gulp.src('js/main.js') .pipe(browserify({ transform: [to5ify] })) .pipe(gulp.dest('./dist')); });
it runs in watch:
gulp.task('watch', function() { gulp.watch('js/**/*.js', ['scripts']); });
if change js file, task runs, thats nice. if change file while task running, task not stop , restart. how can fix this?
the task runs average of 20s , described case occurs frequently
Comments
Post a Comment