G
G
gassmonkey2016-04-20 12:17:54
Layout
gassmonkey, 2016-04-20 12:17:54

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'));
});

As it runs, it only keeps track of newly added images, i.e. everything as needed. However, it re-optimizes all images each time it starts up.
I remember seeing several plugins for excluding already processed files, but I can't find the exact one I need. M.b. who will tell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
timfcsm, 2016-04-20
@gassmonkey

gulp-newer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question