5 Overriding resources - Reference Documentation
Authors: Marc Palmer (marc@grailsrocks.com), Luke Daley (ld@ldaley.com), Peter N. Steinmetz (ndoc3@steinmetz.org)
Version: 1.2.14
5 Overriding resources
When plugins provide resource module declarations, they may not choose the same resource attributes that you would like to use - in particular plugins will often auto-bundle resources by module name, or have dependencies that you'd like to tweak.This is easy to achieve with the Resources framework, as your application can override the defaultBundle, dependsOn and resources of any module using the "overrides" clause:modules = {
overrides {
jquery {
// We want jquery bundled in with our other code
defaultBundle 'monolith'
} otherModuleToTweak {
dependsOn 'something-else-we-added' resource id:'main-css', bundle: 'my-bundle'
}
}
}