Skip to content

Instantly share code, notes, and snippets.

@swingley
Created June 21, 2013 17:36
Show Gist options
  • Save swingley/5832887 to your computer and use it in GitHub Desktop.
Save swingley/5832887 to your computer and use it in GitHub Desktop.
dojoConfig.packages vs. dojoConfig.paths
// helpful for understanding dojoConfig.packages vs. dojoConfig.paths:
// http://www.sitepen.com/blog/2013/06/20/dojo-faq-what-is-the-difference-packages-vs-paths-vs-aliases/
var dojoConfig = {
paths: {
extras: location.pathname.replace(/\/[^/]+$/, "") + "/extras"
}
var dojoConfig = {
packages: [{
"name": "extras",
"location": location.pathname.replace(/\/[^/]+$/, '') + "/extras"
}]
};
@zzge163
Copy link

zzge163 commented Mar 20, 2014

This help me a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment