Results 1 to 10 of 13

Thread: How to biuld all-classes.js without extjs, to use with ext-all.js ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    221
    Vote Rating
    17
      0  

    Default How to biuld all-classes.js without extjs, to use with ext-all.js ?

    I have application that uses three independent ext applications (huge main application, login form, less featured alternate application). If run sehcna app build for each I'll get 3 huge all-classes.js that client should load instead of load ext-all.js with login and files for each app. How can I build all-classes.js for each of three apps without extjs classes? And same for css

    Even for small login application all-classes.js is 700k , resources folder is 500k

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    When doing a build are you using an all build or the core build? (ext-all-debug.js vs ext-debug.js)
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    221
    Vote Rating
    17
      0  

    Default

    When running sehcna app build I can't specify extjs build , but both of them are in extjs sdk

  4. #4
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    221
    Vote Rating
    17
      0  

    Default

    Maybe you mean what is in index.html in x-compile section ?
    By default there was ext-dev.js , changed to ext-all-dev.js - nothing changed in output


    I'm using probably 90% of extjs components, so there is no matter to build custom extjs classes for saving 10% file size. Even worse, when my app changed user should download huge all-classes.js again instead of smaller my-classes.js

  5. #5
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    88
    Vote Rating
    8
      0  

    Default

    Do you have any solution to this question?

    I have an app where I want to have (in first round) an extjs-classes.js (contains all the required ext core classes) and app-all.js (contains all my application). I think this is near to the original question...

    Have you found the correct way to this?

  6. #6
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    221
    Vote Rating
    17
      0  

    Default

    Yes. Not sure that same possible for sencha app build, but only for scripts this command is working perfectly:
    Code:
    sencha compile exclude -file **/extjs/src and concat -compress ../web/app-all.js
    Than I need include ext-all.js and app-all.js and all's working

Posting Permissions

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