A pitfall to avoid when using the Grails UIPerformance plugin
A quick warning to anyone who’s using the excellent UIPerformance plugin for grails: don’t do what I did, and set up your bundles with identical names:
uiperformance.bundles = [
[type: 'css',
name: 'bundled',
files: ['reset',
'style',
'invalid',
'jquery.jcarousel']],
[type: 'js',
name: 'bundled',
files: [
'jquery-1.3.2.min',
'simpla.jquery.configuration',
'facebox',
'jquery.jcarousel.pack',
'cert']]
]
Unsurprisingly, this causes the plugin to get confused; the following works much better:
uiperformance.bundles = [
[type: 'css',
name: 'bundled_css',
files: ['reset',
'style',
'invalid',
'jquery.jcarousel']],
[type: 'js',
name: 'bundled_javascript',
files: [
'jquery-1.3.2.min',
'simpla.jquery.configuration',
'facebox',
'jquery.jcarousel.pack',
'cert']]
]