Questions tagged [grails-resources-plugin]

HTML resource management enhancements to replace g.resource etc.

This plugin represents a new way of declaring and linking to static resources in your application and plugins.

Resource dependencies can be declared (e.g. requires ) and pages simply indicate which resource modules they require. The plugin does the rest, and provides a processing pipeline for advanced optimisations.

Home Page: http://grails.org/plugin/resources

19 questions
17
votes
1 answer

URLs within CSS files broken with Grails resources plugin 1.2.7

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…
Peter
  • 29,498
  • 21
  • 89
  • 122
5
votes
2 answers

What is asset-pipeline plugin and resources plugin? What is the different between them?

What is asset-pipeline plugin and resources plugin? What are the differences between them? What are the advantages and disadvantages? Are this mandatory to work with different js and css framework?
padippist
  • 1,178
  • 1
  • 16
  • 30
5
votes
1 answer

Converting resources plugin modules to asset-pipeline

Is there a recommended method of replacing resources plugin modules when moving to the asset-pipeline plugin? My current best guess is to create empty .js or .css files that require the resources that were in the module, then replace the tags with…
Dave Klein
  • 207
  • 2
  • 10
3
votes
0 answers

How do you use Grails asset pipeline and resources plugins together?

I am trying to build a Grails 2.3.8 application using the new asset-pipeline plugin (because it is much easier to integrate with sass), but I also need to pull in a plugin (one of my own but used by other applications) that uses the resources…
DaveLC
  • 31
  • 2
2
votes
0 answers

Grails resources not found errors

I have a grails application which stops working after installing shiro plugin for authentication. After installation I got the following error. Error 2014-03-27 11:08:35,985 [localhost-startStop-1] ERROR spring.GrailsRuntimeConfigurator -…
Sikander
  • 834
  • 2
  • 10
  • 33
1
vote
1 answer

Grails 2.4.3 ERROR context.GrailsContextLoaderListener

I am getting following error when I execute grails run-app, I am trying to run grails-sso-sample application locally but unable to do so Following is the error from Stacktrace Stacktrace | Error 2017-01-19 15:06:29,946 [localhost-startStop-1] ERROR…
1
vote
2 answers

Grails Resources Plugin Not Finding /lib/ folder after upgrade

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…
Gregg
  • 34,973
  • 19
  • 109
  • 214
1
vote
0 answers

Tomcat Work Directory with Grails Application

I have a Grails application (v. 2.2.5) deployed in a production environment. I had some issues with a dashboard page with several graphs loading the data via AJAX. Most of the graphs show up correctly but after a week or so of it being deployed some…
1
vote
1 answer

Custom CSS and JS in Grails plugins

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…
1
vote
1 answer

How to add Google web font css to Grails resources

What is the right way to add a Google web font css dependency to a grails app using the resources plugin? For some reason, the grails resources plugin seems to want to remove the query string. modules = { mainLayout { dependsOn…
Christian
  • 1,241
  • 2
  • 8
  • 11
0
votes
1 answer

Taglib is not processing CSS refering external folder

On migrating from Grails 2.5 to Grails 3 it is recommended that not to use the resource plugin as post Grails 3 resource plugin is deprecated. As a alternative I used asset pipeline.Is there a recommended method of replacing resources plugin…
0
votes
2 answers

How to force browser to not cache css file when the css file changes?

I have a base layout file which is used in most of the views. In the base layout i require a module using the grails resources plugin. The modules are defined in conf/ApplicationResources.groovy file as modules = { …
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
0 answers

Module [xyz] depends on resource [/plugins/jquery-1.8.0/js/jquery/jquery-1.8.0.min.js] but the file cannot be found

I am working on grails. I am using resources plugin to acquire all the dependencies in my application. The problem is I am getting the exception like Module [jquery] depends on resource [/plugins/jquery-1.8.0/js/jquery/jquery-1.8.0.min.js] but the…
Muhammad Usman
  • 10,039
  • 22
  • 39
0
votes
1 answer

Grails resources not working with cache-busting CKEditor release (4.5.5+)

I am unable to get a Grails 2.5.2 application using the resources plugin to handle the cache-busting change made to CKEditor. The resources plugin is configured as follows: grails.resources.adhoc.patterns = ['/js/*', '/images/*', '/css/*',…
ben3000
  • 4,629
  • 6
  • 24
  • 43
0
votes
0 answers

How to check for a module exits and include it in resources in grails

I have a module defined as below, which depends on other module. 'myTestService' { dependsOn "otherTestService" } otherTestService is defined in another plugin But that plugin may not be included always,So the app works fine if the module found…
n92
  • 7,424
  • 27
  • 93
  • 129
1
2