Results 1 to 2 of 2

Thread: How do I stop sencha cmd from writting out the .css link?

  1. #1
    Ext JS Premium Member
    Join Date
    Aug 2011
    Location
    Greenville, SC
    Posts
    181

    Default How do I stop sencha cmd from writting out the .css link?

    Is it possible to prevent sencha command from writting out the css link in html header?

    This is in index.html:
    Code:
    <!-- <x-compile> -->
        <!-- <x-bootstrap> -->
            <script type="text/javascript" src="../extjs4/ext-debug.js"></script>
        <!-- </x-bootstrap> -->
        <script type="text/javascript" src="app-login.js"></script>
    <!-- </x-compile> -->
    Which outputs this:
    Code:
    <link rel="stylesheet" href="resources/Login-all.css"/>
    <script type="text/javascript" src="login-all.js"></script>
    I don't want to have it write out this:

    "<link rel="stylesheet" href="resources/Login-all.css"/>"

    In older version of command it only did the javascript. I am sure there has to be a property I can set.

    Thanks,

    Bryan

  2. #2
    Sencha Premium User varsos's Avatar
    Join Date
    Feb 2008
    Location
    Long Island, NY
    Posts
    367

    Default

    I do not know, but if you cannot find a way as a last resort you can add something like this to the build.xml to remove it yourself:

    Code:
    <target name="-after-page">
      <replace file="${build.dir}/${app.page.name}" token="" value=""/>
    </target>
    the token would be the string to replace.
    varsos

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •