Skip to content

Commit

Permalink
Update watch for gulp >= 4
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Aug 31, 2021
1 parent 348eab2 commit 141e063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ gulp.task('default', function () {
});

gulp.task('watch', function () {
gulp.watch('test/fixtures/*.js', ['default']);
gulp.watch('test/fixtures/*.js', gulp.series('default'));
});
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ gulp.task('build', function() {
});

gulp.task('default', ['build'], function() {
gulp.watch(['src/**/*.js'], ['build']);
gulp.watch(['src/**/*.js'], gulp.series('build'));
});

```
Expand Down

0 comments on commit 141e063

Please sign in to comment.