cfxram/grails-dojo — Issue #25: Fix dojo custom build issue
Author: cfxram
Created: 2011-11-16 21:52:48+00:00
State: open

When removing certain required values from the custom build script... it doesn't fix the problem successfully.

Example posted by John Moore

To try and prevent the flash of unstyled content I was getting using Dojo for my menu bars, I have gone for the custom build approach as outlined on the plugin's FAQ page. I used 'install-custom-dojo', with the following in my Congig.groovy:

dojo.optimize.during.build = false;
dojo.use.customBuild.js = true;
dojo.use.customBuild.css = true;
dojo.profile = """
dependencies = {
layers: [
{
name: "custom-dojo.js",
dependencies: ['dijit.MenuBar','dijit.PopupMenuBarItem', 'dijit.Menu','dijit.MenuItem','dijit.PopupMenuItem']
}
],

prefixes: [
[ "dijit", "../dijit" ]
],
css: {
dependencies: [ "../dojo/resources/dojo.css", "../dijit/themes/dijit.css", "../dijit/themes/claro/claro.css" ]
}
}
"""

Something's not right, though. When I do a run-app, the page with the menu bar on does not display properly. When I view source, I can see that some required files have been unavailable:

DOESN'T FIND THIS FILE:

FINDS THIS FILE OK:

DOESN'T FIND THIS FILE:

FINDS THIS FILE OK:

Can anyone shed any light on what might have gone wrong here?