Skip to content

Instantly share code, notes, and snippets.

@fedevegili
Created March 6, 2014 23:04
Show Gist options
  • Save fedevegili/9401652 to your computer and use it in GitHub Desktop.
Save fedevegili/9401652 to your computer and use it in GitHub Desktop.
curl.config({
//By default load any module IDs from js/lib
//baseUrl : 'resources/js',
baseUrl : 'http://localhost/sesuite/ui/desktop/lite/resources/js',
//except, if the module ID starts with "app",
//load it from the js/app directory. paths
//config is relative to the baseUrl, and
//never includes a ".js" extension since
//the paths config could be for a directory.
paths: {
libs : '../libs',
jquery : "../libs/jquery/jquery",
bootstrap : {
location: '../libs/bootstrap/js/bootstrap',
config: {
// use the legacy loader
loader: '../../node_modules/cram/amd_modules/curl/src/curl/loader/legacy.js',
// remove Backbone global! yes!
exports: '$',
// make sure jQuery is loaded
requires: ['jquery']
}
},
loadmask : '../libs/loadmask/jquery.loadmask.min',
toastr : "../libs/toastr/toastr",
hogan : "../../node_modules/hogan.js/web/builds/2.0.0/hogan-2.0.0.min.amd.js",
templates : "../../dist"
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment