Created
August 16, 2012 09:02
-
-
Save phawk/3368590 to your computer and use it in GitHub Desktop.
requirejs config for Backbone.js development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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