edvinasbartkus / grails-coffeescript-resources

Another CoffeeScript compiler for Grails
Other
20 stars 10 forks source link

Cannot use coffee resources in plugins #23

Open alari opened 11 years ago

alari commented 11 years ago

I faced a problem while working with coffeescript-resources inside my plugin. The problem is: plugin mapper looks the wrong filepath when trying to compile in-plugin's .coffee, so compilation fails.


File input = original // instead of grailsApplication.parentContext.getResource(resource.sourceUrl).file

this line in CoffeeScriptResourceMapper fixes the problem.

ttyusupov commented 11 years ago

I met the same issue also when trying to use https://github.com/benorama/grails-aws-sdk with coffeescript-resources to push resources to s3.