miracle2k/webassets — pull request #131 by matthanger (2012-04-30 20:43:42+00:00)
Title: Change to less filter to use 'output' instead of 'open'

I noticed an issue where the less filter would not notice when changes were made to the original source file. This made using webassets+less cumbersome for local development, to say the least. I believe this is because for 'open' filters, cache.py only uses the filename as the key, not the contents of the file itself.

To be fair, I don't entirely understand all the bits and pieces involved, so I may be missing something. Regardless, the most straightforward way I could find to fix this is to update the less filter to use 'output' instead of 'open'. This is based on a somewhat-poorly documented command line switch to lessc that does not seem to have been available at the time the less filter was created: https://github.com/cloudhead/less.js/commit/f62b311aa21366c603a7fa8f726f767770776069