1. #1
    Sencha User voodoov's Avatar
    Join Date
    Mar 2012
    Posts
    34
    Vote Rating
    0
    voodoov is on a distinguished road

      0  

    Default [SOLVED] After Build Only ext-all.js Works and Does not Minify app-all.js

    [SOLVED] After Build Only ext-all.js Works and Does not Minify app-all.js


    Hi,

    I am using SDK Tools 2 Beta 3 and ExtJS 4.0.7.

    After I've used these commands: (without error and Done building!)
    Code:
    sencha create jsb -a index.html -p app.jsb3
    sencha build -p app.jsb3 -d .
    And the result:
    Code:
    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!
    I can only run app with ext-all.js (and not ext.js) with app-all.js.
    app-all.js is not minified and it does not include ext required classes. It only has my own classes.

    This is my app.js file:
    PHP Code:
    Ext.Loader.setConfig({
        
    enabledtrue,
        
    paths: {
              
    Ext'/ext/src'
         
    }
    });

    Ext.application({
        
    name'MyApp',

        
    controllers: [
            
    'MyController'
        
    ],
                    
        
    appFolder'app',
            
        
    launch: function() {
                    
            
    Ext.widget('mystartclass');                
        }
    }); 
    I don't use any 'requires' or 'uses' in my app. And I don't have any warnings in browser consoles.

    Any help would be greatly appreciated.
    Thank you in Advance.
    Last edited by voodoov; 18 Jun 2012 at 7:04 AM. Reason: Mark as Solved
    I You Sencha!

  2. #2
    Sencha User voodoov's Avatar
    Join Date
    Mar 2012
    Posts
    34
    Vote Rating
    0
    voodoov is on a distinguished road

      0  

    Default


    I've found one of my problems but the other.

    I've replaced ext-all-debug.js with ext-debug.js and removed paths config of the Loader. Now I have all the necessary classes in all-classes.js file But app-all.js is not minified Again. (Without any errors)

    Any suggestion?
    Thank you in Advance.
    I You Sencha!

  3. #3
    Sencha User voodoov's Avatar
    Join Date
    Mar 2012
    Posts
    34
    Vote Rating
    0
    voodoov is on a distinguished road

      0  

    Default The Answer

    The Answer


    And this the answer for whom that stucks like me.

    The float is a reserved word. It needs to be put in quotes like this: {'float':'left'}

    Because the JS file has Syntax Error, it does not minified it. But I don't know how browsers handle this without warnings. And why sencha sdk tools doesn't show the error. I found it when I used yuicompressor.jar itself.

    Hope it helps.
    I You Sencha!

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Location
    Shanghai
    Posts
    71
    Vote Rating
    0
    perry_jia is on a distinguished road

      0  

    Default


    which file please?

  5. #5
    Sencha User
    Join Date
    Sep 2013
    Posts
    1
    Vote Rating
    0
    konasunny is on a distinguished road

      0  

    Default extract the classes which are being used form the ext-all.js

    extract the classes which are being used form the ext-all.js


    do your app-all.js file has all the required extjs classes? if not
    can oyu please let me know how can i extract the classes which are being used form the ext-all.js file


film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar