Skip to content

Instantly share code, notes, and snippets.

@styks1987
Created February 13, 2015 22:33
Show Gist options
  • Save styks1987/278c476e988222c56795 to your computer and use it in GitHub Desktop.
Save styks1987/278c476e988222c56795 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