Closed movie4 closed 9 years ago
I'm not sure I totally understand your setup, but newer
will compare modification times of incoming source files to corresponding files in a single output directory. The assumption is that newer
is part of a chain of gulp streams that is creating the output files.
In the example you give, it is not clear what is responsible for creating the files in the directories returned by getExistConcatFile
, but in any case, newer
does need to be provided a single dest
directory path so it can compare input to output file modification times.
Thank for your answer and an explanation of 'newer' works.
Hello!
Сan not set up gulp-newer correctly to work with directories, all files fall into .pipe(browserSync.reload());
getConcatFiles(appName, type) - return files array
getExistConcatFile(appName, type) - return array with path like bellow: ./app/accounts/templates/ ../itcase-dev/itcase-cart/cart/static/cart/templates/ ./app/experts/templates/ ./app/plupload/templates/ ./templates/
Thanks for your answer.