28 Nov 2012 9:39 AM #1
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.
28 Nov 2012 1:50 PM #2
I looked around and saw, in the app.json file, the following:
/** * Extra resources to be copied along when build */ "resources": [ "resources/images", "resources/icons", "resources/startup" ],