Last active
December 11, 2015 16:08
-
-
Save shanimal/4625559 to your computer and use it in GitHub Desktop.
sample requirejs cdn configuration
This file contains 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:{ | |
'jquery':'//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min', | |
'lodash':'//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.0-rc.2/lodash.min', | |
'foundation':'//cdnjs.cloudflare.com/ajax/libs/foundation/3.2.2/javascripts/foundation.min', | |
'text':'//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.3/text' | |
} | |
}); | |
require([ | |
'jquery', | |
'lodash', | |
'foundation' | |
],function($,_){ | |
console.log("jquery",$.fn.jquery); | |
console.log("lodash",_.VERSION); | |
UNDERSCORE = _; | |
JQUERY = $; | |
}) |
This file contains 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
<script data-main="config" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.1/require.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment