Skip to content

Instantly share code, notes, and snippets.

@fkei
Created October 27, 2013 15:49
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 fkei/7184065 to your computer and use it in GitHub Desktop.
Save fkei/7184065 to your computer and use it in GitHub Desktop.
configure: require.js + backbone.js + jquery + lodash.underscore
......
"paths": {
"jquery": "http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery",
"underscore": "http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.2.1/lodash.underscore",
"backbone" : "http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.0/backbone-min"
},
"shim": {
"backbone": {
"deps": ["underscore", "jquery"],
"exports": "Backbone"
},
"jquery": { "exports": "$" },
"underscore": { "exports": "_" },
},
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment