grails-coffeescript-resources
grails-coffeescript-resources copied to clipboard
Cannot use coffee resources in plugins
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.
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.