Skip to content

Commit

Permalink
Fix error in ES2015 usage example
Browse files Browse the repository at this point in the history
The task `clean` was defined twice and the `build` task was missing in
the ES2015 example.
This commit renames the second `clean` task to `build` to match the ES5
example.

Closes gulpjs#2099
  • Loading branch information
demurgos committed Jan 18, 2018
1 parent a010db6 commit 1f7191c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export { watchFiles as watch };
* You can still use `gulp.task`
* for example to set task names that would otherwise be invalid
*/
const clean = gulp.series(clean, gulp.parallel(styles, scripts));
gulp.task('clean', clean);
const build = gulp.series(clean, gulp.parallel(styles, scripts));
gulp.task('build', build);

/*
* Export a default task
Expand Down

0 comments on commit 1f7191c

Please sign in to comment.