'exclude -namespace=Ext.ux.ajax' 不适用于 sencha cmd 7.0



我在下面添加了代码来build.xml(sencha项目的根目录(,试图在构建应用程序时排除Ext.ux.ajax.*类.js

<target name="-before-init">
<if>
<equals arg1="${build.environment}" arg2="production"/>
<then>
<property name="build.operations">
exclude
-namespace=Ext.ux.ajax
</property>
</then>
</if>
</target>

但它似乎不起作用,输出应用程序.js仍然包括所有Ext.ux.ajax.*类。
我也尝试了-after-init-defaultsexclude -file=xxx,没有任何区别。

我做错了什么?

我想通了

"output": {
// ...
"js": {
"path": "app.js",
"filter": "all" // because of this config
}
},

最新更新