Rename gulp task: webpack:watch → watch` and also monitor subdirectories
This commit is contained in:
+2
-2
@@ -192,8 +192,8 @@ gulp.task('webpack', ['build'], function() {
|
||||
.pipe(gulp.dest('demo/dist/'));
|
||||
});
|
||||
|
||||
gulp.task('webpack:watch', ['webpack'], () => {
|
||||
gulp.watch('./src/*', ['webpack']);
|
||||
gulp.task('watch', ['webpack'], () => {
|
||||
gulp.watch(['./src/*', './src/**/*'], ['webpack']);
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user