Removed dependency of watch task and put it in runSequence; there was no runSequence for it, which makes watch task won’t be run. (#1019)

This commit is contained in:
Kenial S. Lee 2017-02-21 11:57:48 -08:00 committed by Daniel Roy Greenfeld
parent 2006605e24
commit e079dfe17d

View File

@ -88,17 +88,8 @@ gulp.task('browserSync', function() {
});
});
// Default task
gulp.task('default', function() {
runSequence(['styles', 'scripts', 'imgCompression'], 'runServer', 'browserSync');
});
////////////////////////////////
//Watch//
////////////////////////////////
// Watch
gulp.task('watch', ['default'], function() {
gulp.task('watch', function() {
gulp.watch(paths.sass + '/*.scss', ['styles']);
gulp.watch(paths.js + '/*.js', ['scripts']).on("change", reload);
@ -106,3 +97,8 @@ gulp.task('watch', ['default'], function() {
gulp.watch(paths.templates + '/**/*.html').on("change", reload);
});
// Default task
gulp.task('default', function() {
runSequence(['styles', 'scripts', 'imgCompression'], 'runServer', 'browserSync', 'watch');
});