Skip to content

Instantly share code, notes, and snippets.

@aranm
Created October 19, 2012 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aranm/3916122 to your computer and use it in GitHub Desktop.
Save aranm/3916122 to your computer and use it in GitHub Desktop.
Require Config with jQuery
require.config({
paths: {
//3rd Party libraries
'knockout': 'knockout-2.2.0.debug',
'jquery': 'jquery-1.7.1',
'doubletap': 'jquery.doubletap',
'address': 'jquery.address-1.4.min',
'bootstrap': 'bootstrap-2.0.1',
'amplify': 'amplify',
'JQueryDictionary": "Utilities/JQueryDictionary',
'fieldSelection': "JQueryPlugins/fieldSelection",
'jquery.scrollintoview': 'jquery.scrollintoview'
},
shim: {
'bootstrap': {
deps: ['jquery']
},
'doubletap': {
deps: ['jquery']
},
'amplify': {
deps: ['jquery']
},
'fieldSelection': {
deps: ['jquery']
},
'jquery.scrollintoview': {
deps: ['jquery']
},
'JQueryDictionary': {
deps: ['jquery']
},
'address': {
deps: ['jquery'],
exports: 'address'
},
'jquery': {
exports: ['jQuery', '$']
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment