-
14 Feb 2012 10:30 AM #1
Do we have any tool to bundle all the java script?
Do we have any tool to bundle all the java script?
Hello, i was trying to us the SDk tools to minify the java script but it is only minifying the app.js file and i have to use ext-all.js file as a minified version, but not any other java script files i have, does sencha provide any tool to bundle all the java script files?
please let me know if you have anything like that or am i doing something wrong....for now i am following
http://docs.sencha.com/ext-js/4-0/#!/guide/getting_started
OUTPUT:
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!
-
14 Feb 2012 10:54 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
In your application files, are you using things like requires or views to specify what files those classes require?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Feb 2012 11:08 AM #3
yes. we do have requires for telling the dependency and controllers but not views.
-
14 Feb 2012 11:20 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
When you do the build are you using the ext-debug.js file? The SDK Tools go through all the require properties (requires, uses, controllers, etc) and builds the dependency list.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Feb 2012 11:33 AM #5
No i am using this code in my index.html file
<html>
<head>
<title>I</title>
<link rel="stylesheet" type="text/css" href="resources/css/ia-mgr.css" />
<link rel="icon" type="image/x-icon" href="resources/images/favicon.ico" />
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="resources/css/IE9.css" />
<![endif]-->
<script type='text/javascript' src='ext/ext-all-debug.js'></script>
<script type='text/javascript' src='app.js'></script>
</head>
<body>
</body>
</html>
-
14 Feb 2012 11:43 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
To do the build you shouldn't use one of the all scripts
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Feb 2012 11:52 AM #7
So you mean to say instead of ext-debug-all.js i should use ext.js file and it will minify all my java script files?
-
14 Feb 2012 11:57 AM #8Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
That will help get the Ext JS classes to be bundled into the mix. I'm not too sure why your application classes aren't getting picked up at least.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote