1
0
mirror of https://github.com/moodle/moodle.git synced 2025-06-23 16:47:08 +02:00
Files
moodle/lib/requirejs/moodle-config.js
2016-03-21 11:43:15 +08:00

25 lines
776 B
JavaScript

var require = {
baseUrl : '[BASEURL]',
// We only support AMD modules with an explicit define() statement.
enforceDefine: true,
skipDataMain: true,
paths: {
jquery: '[JSURL]lib/jquery/jquery-1.12.1.min[JSEXT]',
jqueryui: '[JSURL]lib/jquery/ui-1.11.4/jquery-ui.min[JSEXT]',
jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
},
// Custom jquery config map.
map: {
// '*' means all modules will get 'jqueryprivate'
// for their 'jquery' dependency.
'*': { jquery: 'jqueryprivate' },
// 'jquery-private' wants the real jQuery module
// though. If this line was not here, there would
// be an unresolvable cyclic dependency.
jqueryprivate: { jquery: 'jquery' }
}
};