Skip to content

Instantly share code, notes, and snippets.

@neonstalwart
Created December 7, 2010 18:52
Show Gist options
  • Save neonstalwart/732209 to your computer and use it in GitHub Desktop.
Save neonstalwart/732209 to your computer and use it in GitHub Desktop.
building dojo with require.js
({
// base url, relative to appDir
baseUrl: './',
// output directory, relative to this file
dir: './build',
// closure, closure.keepLines, none
optimize: 'closure',
closure: {
// WHITESPACE_ONLY, SIMPLE_OPTIMIZATIONS, ADVANCED_OPTIMIZATIONS
CompilationLevel: 'SIMPLE_OPTIMIZATIONS',
// see http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/CompilerOptions.html
CompilerOptions: {
prettyPrint: false,
aliasKeywords: false
},
// SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, OFF, ALL
loggingLevel: 'WARNING'
},
// need to have requirejs GREATER THAN (not equal) to 0.15.0 for this to do what it needs to do.
pragmas: {
asynchLoader: true
},
locale: 'en-us',
modules: [
{
name: 'dojo'
}
]
})
require([
'order!dojo/_base/_loader/bootstrap.js',
'order!dojo/_base/_loader/loader.js',
'order!dojo/_base/_loader/hostenv_browser.js',
// this list of includes is needed because of the conditional used in dojo/_base.js
'order!dojo/_base/lang',
'order!dojo/_base/array',
'order!dojo/_base/declare',
'order!dojo/_base/connect',
'order!dojo/_base/Deferred',
'order!dojo/_base/json',
'order!dojo/_base/Color',
'order!dojo/_base/browser'
], function () {});
@neonstalwart
Copy link
Author

dojo.js is a sibling to dojo, dijit and dojox folders

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