Dojo build for dijit creates file containing only undefined;

189 Views Asked by At

I'm creating a custom build for my dojo application. I've created the following profile.js:

var profile = {
    basePath: "../../../",
    releaseDir: "./releases/custom",
    packages: ['dojo', 'dijit', 'dojox' ],
    cssOptimize: 'comments',
    mini: true,
    optimize: 'comments',
    layerOptimize: 'comments',
    stripControle: 'all',
    selectorEngine: 'lite',
    layers : {
        'dojo/dojo': {         
            include: ['dojo/dojo', 'dojo/domReady', 'dojo/_base/declare', "dojo/on", "dojo/dom-attr", "dojo/dom-class", "dojo/query", "dojo/_base/lang", "dojo/request/xhr", "dojo/parser", "dojo/_base/connect", "dojo/DeferredList", "dojo/store/Memory", "dojo/store/Observable"],         
            boot: true,         
            customBase: true   
        }, 
        'dijit/dijit' : {
            include: ["dijit/registry","dijit/form/TextBox", "dijit/form/Textarea", "dijit/form/ComboBox", "dijit/form/FilteringSelect", "dijit/form/CheckBox", "dijit/form/Button"],
            boot: true,
            customBase: true
        },
    },
}

The dojo/dojo.js is created, but the dijit/dijit.js contains only template text:

//>>built

undefined;

However, the file dijit.js.uncompressed.js is created correctly (998 KB).

Why the dojo build behaves that way? What error is in that configuration? Dojo documentation is quite enigmatic.

--edit--

It seems to be problem with specifying output files. After changing 'dijit/dijit'enter code here to 'dojo/dijit' file dijit.js is created in dojo subdirectory. If I want to create a build with custom name, I need to create it in dojo subdirectory too. Otherwise the empty file (containing only undefined;) is created.

0

There are 0 best solutions below