Skip to content

Commit

Permalink
Docs: Update "clean" task in example for "del" syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
dacodekid authored and phated committed Dec 31, 2017
1 parent 88b6c33 commit cacc173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ gulp.task('default', gulp.series('build'));
/* Define our tasks using plain functions */

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

Expand Down

0 comments on commit cacc173

Please sign in to comment.