Answer the question
In order to leave comments, you need to log in
How to make gulp copy only new photos?
The assembly copies all the photos first each time. And what I had
gulp.task('assets', function() {
return gulp.src(['frontend/assets/{fonts,images}/**', 'frontend/assets/index.html'], {since: gulp.lastRun('assets')})
.pipe(newer('public'))
.pipe(gulp.dest('public'));
});
gulp.task('assets', function() {
return gulp.src('frontend/assets/{fonts,images}/**/*.*')
.pipe(gulp.dest('public'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question