Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dojo custom build issue #25

Open
cfxram opened this issue Nov 16, 2011 · 0 comments
Open

Fix dojo custom build issue #25

cfxram opened this issue Nov 16, 2011 · 0 comments

Comments

@cfxram
Copy link
Owner

cfxram commented Nov 16, 2011

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:

<script type='text/javascript' src='/myapp/js/dojo/1.6.1-custom/dojo/dojo.js' djConfig='isDebug:false, parseOnLoad:true'></script>

DOESN'T FIND THIS FILE:

<script type='text/javascript' src='/myapp/js/dojo/1.6.1-custom/dojoui/dojoui.js'></script>

FINDS THIS FILE OK:

<script type='text/javascript' src='/myapp/js/dojo/1.6.1-custom/dojo/custom-dojo.js'></script>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant