【问题标题】:Using Sencha Cmd, how can I NOT build MyApp-all.css?使用 Sencha Cmd,我如何不构建 MyApp-all.css?
【发布时间】:2014-02-22 03:17:22
【问题描述】:

我们正在使用 Sencha Cmd 构建我们的 ExtJS 4.2.1 应用程序。

使用 Sencha Cmd,如何不构建 MyApp-all.css?

我们使用的是自定义主题,因此我们不需要 Sencha Cmd 通常构建的 css 文件。

应用运行良好,但我们需要停止构建 MyApp-all.css。

提前致谢。

【问题讨论】:

  • 而且我不希望 index.html 中的 行引用 css 文件。
  • 有人有见解吗?

标签: extjs sencha-cmd


【解决方案1】:

我可以执行以下操作来删除整个资源目录并删除链接标签,但就我而言,这太过分了。

<target name="-after-page">
    <fileset id="html.fileset"
        dir="${build.dir}"
        includes="${app.page.name}"/>

    <replaceregexp replace="" flags="g"
        match='\&lt;\s*link\s*rel="stylesheet"\s*href=".*-all.css"\/\&gt;'>
        <fileset refid="html.fileset"/>
    </replaceregexp>
</target>

<target name="-after-build">
    <delete dir="${build.resources.dir}"/>
</target>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-18
    相关资源
    最近更新 更多