I am using an external requirejs loader and i have configured the following in ember-cli-build.js:
amd : {
loader: 'http://host-url:80/vp-local/resources/assets/external/requirejs/require.js',
packages: ['js/qlik'],
configPath: 'config/requirejs-config.js',
excludePaths: ['']
}
the script within index.html contains no package js/qlik any more:
require([
--> empty
], function() {
var adoptables = [];
var isVendor = new RegExp('vendor(.*js)');
function recursiveRequire(i, scripts) {
if (i >= scripts.length) {
return;
}
require([scripts[i]], function() {
if (isVendor.test(scripts[i])) {
adoptables.forEach(function(adoptable) {
enifed(adoptable.name, [], function() {
return adoptable.obj;
});
});
}
recursiveRequire(++i, scripts);
});
}
recursiveRequire(0, ["/assets/vendor.js", "/assets/qdt-requirejs.js"]);
});
I am using an external requirejs loader and i have configured the following in ember-cli-build.js: amd : { loader: 'http://host-url:80/vp-local/resources/assets/external/requirejs/require.js', packages: ['js/qlik'], configPath: 'config/requirejs-config.js', excludePaths: [''] } the script within index.html contains no package js/qlik any more: require([ --> empty ], function() { var adoptables = []; var isVendor = new RegExp('vendor(.*js)');