Answer the question
In order to leave comments, you need to log in
How to combine gulp-newer with gulp-babel?
.pipe(babel(config.babel.settings))
.pipe(newer('./public/javascripts/**/*.js'))
.pipe(jsbeautifier())
.pipe(newer('./public/javascripts/**/*.js'))
.pipe(babel(config.babel.settings))
.pipe(jsbeautifier())
Answer the question
In order to leave comments, you need to log in
.pipe(newer('./public/javascripts/**/*.js'))
here is your problem, you need to specify a directory, not a glob. newer skips files into the pipe whose modification time is greater than the modification time of anything in the directory. Next, newer will try to find the corresponding file in this directory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question