Closed JeSuis closed 8 years ago
I think "newer" is incompatible with "clean" since "newer" requires destination files (to compare mtime) and "clean" removes destination files. But maybe I'm misunderstanding your issue.
Why the destination file is compared (mtime) and not the source file?
I'm trying to get something like this working myself. I'd like to run the clean
task on my build/img
directory but only on files older than in src/img
, or if the file no longer exists in src/img
- Is this possible with newer
?
I want to use this with clean but only run clean if newer triggers the task to run like compass or requirejs