paulfairless/grails-lesscss-resources — pull request #49 by tscheinecker (2013-07-15 11:25:29+00:00)
Title: Use the processed file instead of the original one

I'm currently writing a plugin (https://github.com/tscheinecker/grails-augmented-resources) which modifies the less files before they are compiled.
At the moment I have to include an very unpleaset step in which i save the new file to the original files location and set it as the new source, and therefor I not only pollute the workspace but I also break live reloading for that particular file.
To solve the issue I extended your resource mapper to just create a copy of the processed file where it expects it to be, compile it and delete it right afterwards.
With this change arbitrary changes can be made to the less files before they get compiled and live reloading still works as expected.