1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    North Carolina
    Posts
    307
    Vote Rating
    18
    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,403
    Vote Rating
    147
    dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold

      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