![JAR search and dependency download from the Maven repository](/logo.png)
WebContent.js.loaderConfig.js Maven / Gradle / Ivy
The newest version!
/*
* (C) Copyright IBM Corp. 2012, 2016 All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function() {
var href = location.href,
isDebugLoader = /[&?]debugLoader=1/.test(href);
// make sure we use the global require object
this.require = {
async: true,
baseUrl: '..',
packages: [
{
name: 'dojo',
location: 'aggr/app/dojo-1.11.2/dojo',
lib: '.'
},
{
name: 'dijit',
location: 'aggr/app/dojo-1.11.2/dijit',
lib: '.'
},
{
name: 'dojox',
location: 'aggr/app/Wdojo-1.11.2/dojox',
lib: '.'
}
],
paths: {
js: "res/js",
theme: "res/theme",
lesspp: "//cdnjs.cloudflare.com/ajax/libs/less.js/1.7.3/less.min"
},
has: {
"dojo-error-api" : isDebugLoader,
"dojo-trace-api" : isDebugLoader,
"host-browser" : 1
},
// Enable the desired loader tracing options
trace: {
"loader-inject":isDebugLoader,
"loader-inject-combo": isDebugLoader,
"loader-inject-combo-reject": isDebugLoader,
"loader-define":isDebugLoader,
"loader-exec-module":isDebugLoader,
//"loader-run-factory":isDebugLoader,
//"loader-finish-exec":isDebugLoader,
"loader-define-module":isDebugLoader
},
// This option only has meaning if has.dojo-timeout-api is enabled
waitSeconds: 10,
combo: {
contextPath: "../aggr",
expandRequire: true,
// This is a maven variable, replaced at build time (see pom file for filtered resources).
cacheBust: '${project.version}'
},
deps: [
"dojo/ready",
"dojo/parser",
"js/bootstrap"
],
callback: function(ready, parser) {
ready(function() {
parser.parse();
});
}
};
// get combo propery overrides from URL
for (var s in {optimize:0,expandRequire:0,showFilenames:0,noCache:0,serverExpandLayers:0,depExpLog:0,sourceMaps:0}) {
var regex = new RegExp("[&?]"+s+"=([^&]*)","i");
var result = regex.exec(href) || [];
if (result.length > 1) {
require.combo[s] = result[1];
}
}
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy