Skip to content

Commit cacc173

Browse files
dacodekidphated
authored andcommitted
Docs: Update "clean" task in example for "del" syntax change
1 parent 88b6c33 commit cacc173

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ gulp.task('default', gulp.series('build'));
5555
/* Define our tasks using plain functions */
5656

5757
// Not all tasks need to use streams
58-
// A gulpfile is just another node program and you can use all packages available on npm
58+
// But it must return either a Promise or Stream or take a Callback and call it
5959
function clean() {
6060
// You can use multiple globbing patterns as you would with `gulp.src`
61+
// If you are using del 2.0 or above, return its promise
6162
return del(['build']);
6263
}
6364

0 commit comments

Comments
 (0)