Skip to content

Commit

Permalink
Docs: Have gulp.lastRun take a function to avoid task registration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald authored and phated committed Dec 31, 2017
1 parent 29ece6f commit d420a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const paths = {
}

function images() {
return gulp.src(paths.images.src, {since: gulp.lastRun('images')})
return gulp.src(paths.images.src, {since: gulp.lastRun(images)})
.pipe(imagemin({optimizationLevel: 5}))
.pipe(gulp.dest(paths.images.dest));
}
Expand Down

0 comments on commit d420a6a

Please sign in to comment.