mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-23 15:54:12 +03:00
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:
parent
2006605e24
commit
e079dfe17d
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user