Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      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
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      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
    86
    Vote Rating
    5
    HyGy is on a distinguished road

      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
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      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

Thread Participants: 2