Skip to content

Instantly share code, notes, and snippets.

@phawk
Created August 16, 2012 09:02
Show Gist options
  • Save phawk/3368590 to your computer and use it in GitHub Desktop.
Save phawk/3368590 to your computer and use it in GitHub Desktop.
requirejs config for Backbone.js development
require.config({
baseUrl: "/js"
, paths: {
"jquery": "libs/jquery/jquery.min"
, "underscore": "libs/underscore/underscore-min"
, "backbone": "libs/backbone/backbone-min"
, "handlebars": "libs/handlebars/handlebars"
, "text": "libs/require/text"
}
, shim: {
'underscore': {
exports: '_'
}
, 'backbone': {
deps: ['underscore', 'jquery']
, exports: 'Backbone'
}
, 'handlebars': {
exports: 'Handlebars'
}
, 'libs/jquery/chosen.jquery.min': ['jquery']
}
, urlArgs: "bust="+(new Date()).getTime() // cache-busting for development
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment