Results 1 to 4 of 4

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    83
    Answers
    7
    Vote Rating
    3
      0  

    Default 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,390
    Answers
    716
    Vote Rating
    498
      0  

  3. #3
    Sencha Premium User
    Join Date
    Dec 2010
    Posts
    214
    Answers
    5
    Vote Rating
    4
      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
    63
    Answers
    4
    Vote Rating
    8
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •