1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    82
    Answers
    7
    Vote Rating
    1
    dr-dan is on a distinguished road

      0  

    Default Answered: How to package (minify) an extjs 4 application

    Answered: How to package (minify) an extjs 4 application


    I am looking for de facto instructions for packaging and minfying an Ext JS 4 app.Everything seems to point to the Sencha SDK, but everything around this is targeted at Sencha Touch, and anyway, when I follow the instructions (sencha app build testing) I receive:"The current working directory (C:...) is not a recognized Sencha SDK or application folder"Which throws me, since the structure I am using was generated by Sencha Achitect.I'd expect loads of posts/guides/blogs/articles on this: what you'd think would be a common requirement givent the shed load of .js files one creates whilst developing.

    Is the idea to use the SDK for standard web apps as the docs suggest for Touch?

    How exact does the project structure need to be? Just the folders (which i have thanks to architect), do the filenames need to be exact too (which are different thanks to architect)? do i need an app.json & packager.json and if so what's its content?


  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,078
    Answers
    674
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

  3. #3
    Touch Premium Member
    Join Date
    Dec 2010
    Posts
    157
    Answers
    3
    Vote Rating
    2
    tomdchi is on a distinguished road

      0  

    Default


    I noticed that none of these links are from Sencha. I find it odd that sencha relies so much on external sources on how to use their applications.

  4. #4
    Sencha Premium Member
    Join Date
    Feb 2013
    Location
    Yorkshire, UK
    Posts
    59
    Answers
    4
    Vote Rating
    1
    al.todd is on a distinguished road

      0  

    Default


    This post is much out dated. You need the newish Sencha Cmd 3.0.

    http://docs.sencha.com/extjs/4.2.1/#!/guide/command
    http://www.sencha.com/blog/all-new-sencha-cmd

    Download:
    http://www.sencha.com/products/sencha-cmd/download

    A great thing once you've stepped over the short learning curve.

    Its as simple as running sencha app build, which creates a YUI compressed .js file, with many options to reduce the size by explicitly including the things you need.

Thread Participants: 3

Tags for this Thread