1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    353
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default cmd 3.1.0.256 build avoid adding stylesheet

    cmd 3.1.0.256 build avoid adding stylesheet


    i have an app named "esinube"

    with this index.html

    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>esinube</title>
        <!-- <x-compile> -->
            <!-- <x-bootstrap> -->
                <link rel="stylesheet" href="bootstrap.css">
                <script src="ext/ext-dev.js"></script>
                <script src="bootstrap.js"></script>
            <!-- </x-bootstrap> -->
            <script src="app/app.js"></script>
        <!-- </x-compile> -->
    </head>
    <body></body>
    </html>
    when i build the app with sencha cmd 3.1.0.256 i want to avoid the generation of this line

    Code:
    <link rel="stylesheet" href="resources/esinube-all.css"/>
    Full output code:
    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>esinube</title>
    
    <link rel="stylesheet" href="resources/esinube-all.css"/>
    <script type="text/javascript" src="all-classes.js"></script>
    </head>
    <body></body>
    </html>
    is it possible configuring something ??
    -------------------
    Manel Juàrez

  2. #2
    Sencha User
    Join Date
    Feb 2010
    Posts
    353
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    i found one solution (i don't know if it could be solved in a better way)

    in file .sencha/app/build-impl.xml comment the line with "-stylesheet" arround line 479 aprox.

    Code:
        <target name="-page">
            
    <echo file="${bootstrap.example.js}">
    /**
     * This file is generated by Sencha Cmd and should NOT be edited.  It is 
     * provided to support globbing requires, custom xtypes, and other 
     * metadata-driven class system features 
     */
    </echo>
            <!--run compile command to generate concatenated output files for js and scss-->
            <x-sencha-command dir="${app.dir}">
                #base build command
                
                compile
                    ${build.options}
                    page
                        -name=full-page
                        -in=${app.page.file}
                        -out=${build.page.file}
                        -classes=${build.classes.name}
                        #-stylesheet=${app.out.css.rel}
                    and
    -------------------
    Manel Juàrez