Skip to content

Instantly share code, notes, and snippets.

@Fintan
Created April 15, 2013 15:09
Show Gist options
  • Save Fintan/5388801 to your computer and use it in GitHub Desktop.
Save Fintan/5388801 to your computer and use it in GitHub Desktop.
Marionette RequireJs config
requirejs.config({
baseUrl: "./",
//Comment out the optimize line if you want
//the code minified by UglifyJS
optimize: "none",
//keepBuildDir: false,
paths: {
'jquery': "vendor/jquery",
'underscore': "vendor/underscore",
'backbone': "vendor/backbone",
'handlebars': "vendor/handlebars-1.0.rc.1",
'bootstrap': "vendor/bootstrap",
'marionette': "vendor/backbone.marionette",
'backbone.wreqr': 'vendor/backbone.wreqr',
'backbone.babysitter': 'vendor/backbone.babysitter',
'backbone.stickit': 'vendor/backbone.stickit'
},
name: "Main",
shim: {
jquery : {
exports : 'jQuery'
},
underscore : {
exports : "_"
},
backbone: {
deps: ["underscore", "jquery"],
exports: "Backbone"
},
"backbone.stickit": {
deps: ["underscore", "jquery", "backbone"]
},
handlebars: {
exports: 'Handlebars'
},
jst: {
deps:[ "handlebars", "utils/handlebarhelpers"],
exports: "JST"
},
bootstrap:["jquery"]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment