I am trying to create an assembly using dojo, which is as simple as it can be.
The only package I installed is Arcgis-js-api using the gazebo:
"dependencies": {
"esri": "arcgis-js-api#3.21.0"
}
my build.profile.js is defined as follows:
var profile = {
basePath: "./src",
action: "release",
cssOptimize: "comments",
mini: true,
layerOptimize: "closure",
packages: [
"app",
"dijit",
"dojo",
"dojox",
"dstore",
"dgrid",
"dgrid1",
"xstyle",
"put-selector",
"esri", {
name: "moment",
location: "moment",
main: "moment"
}
],
useSourceMaps: false,
mini: true,
stripConsole: "warn",
selectorEngine: "lite",
layers: [{
"dojo/dojo": {
boot: true,
customBase:true,
include: [
"app/main"
]
}
}]
};
If I understood the dojo documentation in the assembly system correctly, this should create one output file in dojo / dojo.js that contains all the dependencies, but when I create the assembly using this profile, I get for every package that was defined.
The app / main package consists of one call to console.log:
define([],function(){
console.log("ratzupaltuff");
});
I expect to get only a small release, since I am essentially not using dojo anything.
, ? - 114 , , , .