Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the processed file instead of the original one #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsalzinger
Copy link

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.

…in the original file location to ensure that all @import statements work correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant