1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    Manchester, UK
    Posts
    115
    Vote Rating
    23
    LisburnLad will become famous soon enough LisburnLad will become famous soon enough

      0  

    Default app.json indexHtmlPath parameter not being recognised in V5

    I've just upgraded from Sencha Cmd 4.0.2.67 to version 5.0.1.231.
    After running "sencha app upgrade" I've found that the parameter I have to set the front HTML document in my app.json file is no longer respected.

    I have this:

    Code:
        /**
         * The file path to this application's front HTML document, relative to this app.json file
         */
        "indexHtmlPath": "TouchDefault.aspx",
    which previously gave the output:

    [INF] Building output markup to C:\CleanProgs\FrontEnd\WorkspaceHIDE/build/production/Wita/TouchDefault.aspx

    but which after the upgrade just ignores this and produces the default index.html:

    [INF] Building output markup to C:\CleanProgs\FrontEnd\WorkspaceHIDE/build/production/Wita/index.html


    Is there a new way to specify what the front document is called?

    [EDIT] I've just actually found that the build process has actually taken my TouchDefault.aspx file and written it to the build directory, its just it has now named it index.html

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,012
    Vote Rating
    134
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    You need to set the path in the output object:
    Code:
    "output": {
        "base": "${workspace.build.dir}/${build.environment}/${app.name}",
        "page": {
            "path": "TouchDefault.aspx",
            "enable": true
        },
        "microloader": {
            "path": "microloader.js",
            "embed": false,
            "enable": true
        }
    }
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1

Tags for this Thread