-
16 Jun 2012 9:48 PM #1
[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!)
And the result:Code:sencha create jsb -a index.html -p app.jsb3 sencha build -p app.jsb3 -d .
I can only run app with ext-all.js (and not ext.js) with app-all.js.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!
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:
I don't use any 'requires' or 'uses' in my app. And I don't have any warnings in browser consoles.PHP Code:Ext.Loader.setConfig({
enabled: true,
paths: {
Ext: '/ext/src'
}
});
Ext.application({
name: 'MyApp',
controllers: [
'MyController'
],
appFolder: 'app',
launch: function() {
Ext.widget('mystartclass');
}
});
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!◢
-
18 Jun 2012 1:01 AM #2
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!◢
-
18 Jun 2012 7:01 AM #3
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!◢
-
18 Nov 2012 7:22 PM #4
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote