gulp.lastRun is not a function [2]

Created on 12 Sep 2016  Â·  2Comments  Â·  Source: gulpjs/gulp

var time = gulp.lastRun('build-coffee');

ERROR: gulp.lastRun is not a function

How to know last run time?
How to work this code:

gulp.task 'build-coffee', =>
    gulp.src './modules/**/*.coffee', since: gulp.lastRun('build-coffee')
    .pipe coffee()
    .pipe gulp.dest './build/'

questions

  • How to know last run time?
  • How to work this code?
  • Which version I should use?

All 2 comments

Install 4.0

Support questions should be directed to StackOverflow.

Support questions should be directed to StackOverflow.

I did not know, thks

Was this page helpful?
0 / 5 - 0 ratings