gulpjs/gulp — pull request #351 by tschaub (2014-03-17 21:40:17+00:00)
Title: Another strategy for incremental builds

While the `gulp-changed` and `gulp-cached` plugins work great with 1:1 src:dest file mapping, they should not be used for n:1 src:dest mapping. With plugins like `gulp-concat`, `css-sprite`, etc. that generate a single output file given many input files, you want to compare the modification time of the output file to the modification file of each input file (and use all if any are newer).

The [`gulp-newer` plugin](https://github.com/tschaub/gulp-newer) works with both 1:1 and n:1 src:dest mapping by comparing `mtime`.