Skip to content

Instantly share code, notes, and snippets.

@rmoura-92
Created July 9, 2013 16:03
Show Gist options
  • Save rmoura-92/5958627 to your computer and use it in GitHub Desktop.
Save rmoura-92/5958627 to your computer and use it in GitHub Desktop.
require.config({
baseUrl: 'js',
shim: {
'jquery': { exports: '$' },
backbone: { deps: ['jquery','underscore'], exports: 'Backbone' },
underscore: { exports: '_' },
'underscore-string': { deps: ['underscore'] }
},
paths: {
jquery: 'vendor/jquery.min',
underscore: 'vendor/underscore.min',
backbone: 'vendor/backbone.min',
backboneLocalStorage: 'vendor/backboneLocalStorage.min',
templates: '../templates',
jsgeo: 'http://j.maxmind.com/app/geoip',
'jquery-ui': 'vendor/jquery-ui.min',
'underscore-string': 'http://raw.github.com/epeli/underscore.string/master/dist/underscore.string.min',
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment