I have a scenario where I only run a task (minify js) if two files are different. If they're the same, then I don't need to run.
Best way would be to first compare sizes, if they are different then the files are too. If they are the same, then compare contents and then decide if to run the task or not.
Can't seem to figure out a way to do it.