coffeescript-resources

Disable grails 2.0 resources processing, after deploy

孤街浪徒 提交于 2019-12-23 09:28:24
问题 I've packaged my app into a war (by grails war ), and as I see, it have built all required resources. For example I have coffeescript code, that have translated to into js dir. Same for scss , etc. I mean I have all static resources, that can be served directly (and I want to server it from Nginx, not Tomcat) But after deploying this war into Tomcat, I'm getting errors like: ERROR plugins.DefaultGrailsPluginManager - Error configuring dynamic methods for plugin [resources:1.1.6]: java.lang

functions in coffee-file are not available from other js

痞子三分冷 提交于 2019-12-04 02:39:02
问题 I try to use coffeescript in my Grails-project. To achive this I decided to use coffeescript-resources plugin. But compiled coffee in result view looks like follows: (function() { var someFunc; someFunc = function() { return alert("hello"); }; }).call(this); and in this case I cant call it. I have not found any proper configurations in the plugin documentation to avoid using anonymous functions while compiling coffee-file. How can I solve this? 回答1: From the fine manual: Lexical Scoping and