Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Gulp: Watch task
// Watch Task
gulp.task('default', ['styles', 'vendorsJs', 'scriptsJs', 'images', 'browser-sync'], function () {
gulp.watch('./assets/img/raw/**/*', ['images']);
gulp.watch('./assets/css/**/*.scss', ['styles']);
gulp.watch('./assets/js/**/*.js', ['scriptsJs', browserSync.reload]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment