Answer the question
In order to leave comments, you need to log in
Which gulp plugin allows you to process only new or changed files, excluding from processing already processed ones?
There is such a task for optimizing images:
gulp.task('img-tin', function () {
return gulp.src('dev/_img/**/**/*.*')
.pipe(plumber())
.pipe(watch('dev/_img/**/**/*.*'))
.pipe(tinpng('rF_1rn1o4wE_ejmzzUr3sqXZkEXXXXX'))
.pipe(gulp.dest('dev/img'));
});
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