1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    7
    Vote Rating
    1
    vn_service_desk is on a distinguished road

      0  

    Default How to include a resource folder when native packaging with sencha cmd

    How to include a resource folder when native packaging with sencha cmd


    Hi all,

    How can i include a resource folder when using the sencha cmd for native packaging ?

    Thanks

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,907
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    use the app.json file to add css, images, and js. An alternative is to add these as resources in Architect which in turn adds them as link, script tags to the index.html file.

    I would utilize the resources/ directory generated by Cmd.

    If it's say images see this part of the app.json
    /**
    * Extra resources to be copied along when build
    */
    "resources": [
    "resources/images",
    "resources/icons",
    "resources/startup"
    ],
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 1