P
P
Pavel2016-06-08 16:53:00
gulp.js
Pavel, 2016-06-08 16:53:00

Gulp lastRun always gives undefined, how to fix?

Actually, I write the following code:

gulp.task('assets', function() {
  
  return gulp.src(sourceDir, {since: gulp.lastRun('assets'), base: repoDir}) 
  .pipe(gulp.dest(publicDir))
})

gulp.lastRun - always returns undefined. I read the forums - they write there that there was a bug, it was closed. I have the latest version of that package, taking into account those fixes.
I tried to look at other tasks - in all lastRun undefined :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7iomka, 2016-09-12
@7iomka

Проблема в том, что Вы пытаетесь использовать фичу, которая доступна только начиная с новой версии GULP 4.
Обновите галп, и проблема исчезнет!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question