繁体   English   中英

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

[英]`exclude -namespace=Ext.ux.ajax` not working for sencha cmd 7.0

我在build.xml( Ext.ux.ajax.*项目的根目录)中添加了下面的代码,试图在构建app.js时排除Ext.ux.ajax.*

<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>

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

我究竟做错了什么?

我想到了

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM