grails-resources-plugin

Custom CSS and JS in Grails plugins

纵然是瞬间 提交于 2019-12-11 09:29:14
问题 I am building a Grails plugin ( grails-myorg.zip ) that will contain reusable code/artifacts that should be used by every Grails app in our organization. This includes custom CSS/JS files that help give our apps a consistent look-and-feel. I'm wondering what the best course of action here is: Create a grails-myorg-themes.zip plugin, which just includes the reusable CSS and JS files, and then make that a runtime plugin/dependency (using BuildConfig.groovy ) of the main grails-myorg.zip plugin;

Grails Resources Plugin Not Finding /lib/ folder after upgrade

橙三吉。 提交于 2019-12-04 02:20:15
问题 I've recently upgraded a grails app to 2.4.3 and in the process upgraded the resources plugin to 1.2.14. I realize the assets plugin is preferred at this point, but I cannot make the switch just yet. I have the following defined in my ApplicationResources.groovy modules = { core { resource url: '/js/main.js', disposition: 'head' resource url: '/lib/bootstrap/css/bootstrap.css', disposition: 'head' ... more here } } When I run the app, I get the following: | Error 2015-02-01 23:13:40,005

URLs within CSS files broken with Grails resources plugin 1.2.7

心不动则不痛 提交于 2019-11-27 14:41:04
Recently upgraded a grails project to 2.3.7 and plugins to their newest, which has brought Resources plugin to 1.2.7. This worked fine with Grails 2.1.2 and resources plugin 1.2RC3, but now it is not: whenever I have a css file that references something via a URL like this .checkbox-input-wrap.checked { background-image: url(/img/uniform-assets/checkbox.png); } On the webpage it leads to this error (it is leaving 'resource:/' on the front of the URL) GET resource:/img/uniform-assets/checkbox.png net::ERR_UNKNOWN_URL_SCHEME According to my comment earlier, this wasn't an issue for me because by

URLs within CSS files broken with Grails resources plugin 1.2.7

自古美人都是妖i 提交于 2019-11-26 18:25:48
问题 Recently upgraded a grails project to 2.3.7 and plugins to their newest, which has brought Resources plugin to 1.2.7. This worked fine with Grails 2.1.2 and resources plugin 1.2RC3, but now it is not: whenever I have a css file that references something via a URL like this .checkbox-input-wrap.checked { background-image: url(/img/uniform-assets/checkbox.png); } On the webpage it leads to this error (it is leaving 'resource:/' on the front of the URL) GET resource:/img/uniform-assets/checkbox