-
Notifications
You must be signed in to change notification settings - Fork 27
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
Less resources in plugins are not processed #36
Comments
I did some debugging and found out that lesscssResourceMapper is called with the less resource name in question (the one from the plugin). Having a breakpoint in getOriginalFileSystemFile(String) revealed that the file is not in the list of resources, the call to |
Me again... sorry for providing additional infos step by step, but I am not an expert with Grails plugins and have to dig inside. I dived a bit deeper into the lesscss-plugin code now and would like to ask one thing: is there a special reason that So I tried editing line 24 to simply say I'll keep it like this for now as a temporary workaround, however I'd be happy if there was a clean solution, i.e. which does not involve me messing about in the plugin code (and maybe creating side effects by doing so) |
This missing functionality makes the plugin unusable. Per my understanding of resource plugin system, this should work, but it doesn't: resource url:[plugin: 'MyPlugin', file: 'css/local.less'], attrs: [rel: "stylesheet/less", type: 'css'], bundle: 'bundle_MyApp' |
It works if you define your resources in the plugin like this:
See the plugin definition inside the url and use dash notation instead of camelCase. |
I am facing the problem that less resources within plugins are not processed (i.e. not converted to css and not bundled) when run from a project.
It works fine when running the plugin standalone. Also css and less files within the project are processed as expected.
I have reproduced such a constellation with the least amount of code and uploaded the plugin and project here:
http://www.2shared.com/complete/4OM-RVC6/lesstest.html
If there is any patch or workaround for cases like this, I'd be very happy. Or am I abusing grails-lesscss-resources plugin?
Thanks and best regards,
Peter
The text was updated successfully, but these errors were encountered: