1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    North Carolina
    Posts
    308
    Vote Rating
    22
    worthlutz will become famous soon enough

      0  

    Default How do I get images included in build?

    How do I get images included in build?


    I have an Architect project where I have some images defined. Not in css.

    With src='./assets/myImage.png'

    How do I get these included when using

    sencha app build


    Thanks,

    Worth

  2. #2
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    You can copy extra resources to your build in the build.xml.

    Code:
        <target name="-post-build">
            <mkdir dir="${build.dir}/assets" />
            <copy todir="${build.dir}/assets">
                <fileset dir="assets" includes="*"/>
            </copy>
        </target>
    Or similar. Consult http://ant.apache.org/manual/ for Ant help on the specifics.

    For using Cmd with Architect, check out this post:

    http://www.sencha.com/forum/showthre...-Sencha-Cmd-v3
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Thread Participants: 1