diff --git a/{{cookiecutter.project_slug}}/gulpfile.js b/{{cookiecutter.project_slug}}/gulpfile.js index 73b71339..4f89a771 100644 --- a/{{cookiecutter.project_slug}}/gulpfile.js +++ b/{{cookiecutter.project_slug}}/gulpfile.js @@ -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'); +});