1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Hillsborough, NC
    Posts
    361
    Vote Rating
    91
    worthlutz has a spectacular aura about worthlutz has a spectacular aura about

      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,575
    Vote Rating
    196
    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 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
    Director of Engineering - 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