I have the following profile for a DOJO custom build (boilerplate from https://github.com/csnover/dojo-boilerplate ).
I need to create a layer for my custom code with result as a single .js
file for my custom code.
At the moment the code take all files for custom
, and process theme (minification) but the output it is always not concatenated.
What am I doing wrong here?
var profile = {
basePath: '../src/',
action: 'release',
cssOptimize: 'comments',
mini: true,
optimize: 'closure',
layerOptimize: 'closure',
packages: [
'dgrid',
'dijit',
'dojo',
'dojox',
'put-selector',
'xstyle',
'custom'
],
stripConsole: 'all',
selectorEngine: 'lite',
layers: {
'custom/': {
include: ["custom/bootstrap"]
},
},
staticHasFeatures: {
'dojo-trace-api': false,
'dojo-log-api': false,
'dojo-publish-privates': false,
'dojo-sync-loader': false,
'dojo-xhr-factory': false,
'dojo-test-sniff': false
}
};
I think the layer name should not have a / at the end.
Did you try
'custom': {
???
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.