1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Answers
    1
    Vote Rating
    1
    crsssl is on a distinguished road

      0  

    Default Unanswered: Including HTML (or other) files in a package

    Unanswered: Including HTML (or other) files in a package


    I have some HTML (and other) files containing help/FAQ and other information for my app.

    FYI: I retrieve the text contents of these files using an Ext.Ajax.request, and load them into a panel using the usual panel.setHtml() call.

    I was wondering where would be the best directory to store these so that they will be included when building the native app?

    I tried putting them in a subdirectory of /my-app-name/app/, but they don't get included (I suppose because they are not .js files). Should I put them somewhere else? Or is there, for example, some app.json directive I need to set for getting non-.js files to be included on the native build?

    Thanks again in advance.

  2. #2
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Answers
    1
    Vote Rating
    1
    crsssl is on a distinguished road

      0  

    Default Never mind

    Never mind


    I looked around and saw, in the app.json file, the following:

    Code:
        /**
         * Extra resources to be copied along when build
         */
        "resources": [
            "resources/images",
            "resources/icons",
            "resources/startup"
        ],
    I just created a directory in resources and stuck my files there. Works like a charm.

Tags for this Thread