Results 1 to 8 of 8

Thread: help need regarding application build using sdk tools

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default help need regarding application build using sdk tools

    Hi

    im trying to build a application and it seems to be working fine but once build is complete

    all-classes.js and app-all.js are same size and app-all.js not compressed, even though i have this output on command prompt

    Code:
    D:\>sencha build -p app.jsb3 -d .
    Loading the Project Name Project
    Loaded 0 Packages
    Loaded 2 Builds
      * Parse all-classes.js with options:
        - debug: true
        - debugLevel: 1
      * Parse app-all.js with options:
        - debug: false
        - debugLevel: 1
      * Compress and obfuscate app-all.js...
    Copy resources...
    Done building!
    maybe compress depend on the size of all-classes.js file ?

    so i included the app-all.js + ext.js + app.js in my index file and once the project loads i still see these file are loading once the application is launch

    Capture.jpg

    any idea why app-all.js file is not compressing and those file loads once application is launch?

    Regards

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1391
      0  

    Default

    The files are still loading because you haven't required them to be loaded so they weren't picked up when you created the JSB.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default

    any idea why the file not compressed?

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    117
      0  

    Default

    I myself encountered this problem sometimes. However, it was OK if I ran the same sencha build command the second time. I didn't know why.
    One thing you should check your app.jsb3 is making sure compress is set to true for the app-all.js target. This is default setting when creating jsb file.

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default

    ya compress is set to true.

    i notice that if all-classes.js file is less than 2mb compress seems to be working but not over 2mb.

    any one notice that?

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    117
      0  

    Default

    In my case, all-classes.js is around 3.65MB, and compressed app-all.js is around 0.87MB.

  7. #7
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default

    maybe bug in sdk tools or its not support windows ?

    i use windows 7 ultimate 64bit and SenchaSDKTools-1.2.3

  8. #8
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    117
      0  

    Default

    I use SenchaSDKTools-1.2.3 on Windows 7 32 bit.

Posting Permissions

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