Skip to content

Instantly share code, notes, and snippets.

@damienklinnert
Created April 22, 2013 07:31
Show Gist options
  • Save damienklinnert/5433055 to your computer and use it in GitHub Desktop.
Save damienklinnert/5433055 to your computer and use it in GitHub Desktop.
require.config({
baseUrl: 'lib',
paths: {
'jquery': '../components/jquery/jquery',
'underscore': '../components/underscore/underscore',
'backbone': '../components/backbone/backbone',
},
shim: {
'jquery': {
exports: '$',
depends: []
},
'underscore': {
exports: '_',
depends: []
},
'backbone': {
exports: 'Backbone',
depends: ['jquery', 'underscore']
}
},
});
require(['jquery', 'underscore', 'backbone', 'view/test'],
function () {
'use strict';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment