Results 1 to 2 of 2

Thread: Want to specify absolute path to compiled assets

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Posts
    18

    Question Want to specify absolute path to compiled assets

    Hi everyone.

    I have this index.html template file at the base of my project :
    HTML Code:
    <!DOCTYPE HTML>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>APP</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_loader.js"></script>
            <script type="text/javascript" src="/lib/Deft/build/deft-debug.js"></script>
            <script src="/app/app.js"></script>
            <link rel="stylesheet" href="/bootstrap.css">
        <!-- </x-compile> -->
    </head>
    <body>
    </body>
    </html>
    And the resulting index.html after execution...
    Code:
    sencha app build
    ...is:

    HTML Code:
    <!DOCTYPE HTML>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>APP</title>
    <link rel="stylesheet" href="resources/APP-all.css"/>
    <script type="text/javascript" src="all-classes.js"></script>
    </head>
    <body>
    </body>
    </html>
    Is it possible to configure the build process to specify the absolute path to my script and link tag? For example, I want the resulting references to be :
    • /module/resources/APP-all.css
    • /module/all-classes.js
    Thanks for your advice !
    Last edited by Sylvain Filteau; 23 May 2013 at 10:17 AM. Reason: Code formatting

  2. #2
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522

    Default

    I have not tried this, but maybe adjust some of the properties in .sencha/app/build.properties ?
    • # the output js file
      • build.classes.name=all-classes.js
      • build.classes.file=${build.dir}/${build.classes.name}
    • app.out.css.compressed=${build.dir}/resources/${app.out.base}.css

Tags for this Thread

Posting Permissions

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