Skip to content

Commit

Permalink
Merge pull request #1311 from dacodekid/4.0
Browse files Browse the repository at this point in the history
Fix 'clean' task example code (4.0)
  • Loading branch information
contra committed Oct 6, 2015
2 parents 7243d6e + 5ff512c commit 13e25e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ gulp.task('default', gulp.series('build'));

// Not all tasks need to use streams
// A gulpfile is just another node program and you can use all packages available on npm
function clean(done) {
// 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`
del(['build'], done);
// If you are using del 2.0 or above, return its promise
return del(['build']);
}

// Copy all static images
Expand Down

0 comments on commit 13e25e2

Please sign in to comment.