welaika/wordless — pull request #110 by STRML (2012-09-19 19:56:34+00:00)
Title: Fix for hashing issue with multiple SASS or CoffeeScript files. Fixes #107, #98, #99

A quick fix to the hashing strategy in the preprocessors - use contents of all files of like type, append current file contents.

This ensures that each root file is recompiled if it or its dependencies change, but each root file has a unique hash. This prevents the hash collisions that caused #107 and #98.

The hashing strategy could be faster for .coffee files (no includes, so this should be simple to fix). It could be smarter for SASS/LESS if we traced down the @import paths but that is considerably more work to save a half a second or two in development.