Skip to content

Instantly share code, notes, and snippets.

@mergeweb
Created February 13, 2015 22:32
Show Gist options
  • Save mergeweb/828f1efa5051865bb893 to your computer and use it in GitHub Desktop.
Save mergeweb/828f1efa5051865bb893 to your computer and use it in GitHub Desktop.
require.config({
baseUrl:'/js/Dash',
shim: {
backbone: {
deps: [
"underscore",
"jquery"
],
exports: "Backbone"
},
underscore: {
exports: "_"
}
},
paths: {
backbone: "../lib/backbone/backbone",
jquery: "../lib/jquery/dist/jquery",
moment: "../lib/moment/moment",
text: "../lib/text/text",
underscore: "../lib/underscore/underscore",
},
packages: [
]
});
require(['dash'], function (Dash){
$(document).ready(function(){
Dash.initialize();
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment