F
F
faragly2015-09-02 16:43:30
gulp.js
faragly, 2015-09-02 16:43:30

How to combine gulp-if and gulp-newer in a Gulp task?

How to cross gulp-if and gulp-newer?
gulp-newer has a many-to-one relationship, i.e. I write

gulp.src('source/images/**')
        .pipe(newer('css/main.css'))
and I have pictures in the stream, and if the stream is not empty, I need to do the following operation
.pipe(urlAdjuster({
            append: '?' + Math.floor(Math.random() * Math.pow(10, 6)),
        }))

How to implement it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question