Архив ‘gulp’ Категории

gulp watch inside vagrant, high CPU usage

28 февраля, 2015 | Комментариев нет

solution: just add delay

interval: 1000

example:

gulp.task('watch-dev', function() {
gulp.run(['scripts-dev', 'templates-dev', 'styles-dev', 'inject-dev', 'languages-dev']);
gulp.watch(['app/src/*.js', 'app/src/**/*.js'], { interval: 1000 }, ['scripts-dev']);
gulp.watch(['app/src/*.html', 'app/src/**/*.html'], { interval: 1000 }, ['templates-dev']);
gulp.watch(['app/src/*.css', 'app/src/**/*.css'], { interval: 1000 }, ['styles-dev']);
gulp.watch(['app/src/lang/*.json'], { interval: 1000 }, ['languages-dev']);
});
gulp, NodeJS IAD