Created
December 17, 2013 16:22
-
-
Save jgatjens/8007709 to your computer and use it in GitHub Desktop.
Using the shim for non-AMD libraries and cdn calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.config({ | |
paths: { | |
// use cdn default | fall back local copy | |
"jquery": [ | |
'//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js', | |
'lib/jquery' | |
] | |
"backbone": "vendor/backbone", | |
"underscore": "vendor/underscore" | |
}, | |
shim: { | |
"backbone": { | |
deps: [ "underscore" ], | |
exports: "Backbone" | |
}, | |
"underscore": { | |
exports: "_" | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment