Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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