22 Feb 2013 6:02 AM #1
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
24 Feb 2013 5:53 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
When doing a build are you using an all build or the core build? (ext-all-debug.js vs ext-debug.js)
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
25 Feb 2013 2:53 AM #3
When running sehcna app build I can't specify extjs build , but both of them are in extjs sdk
25 Feb 2013 6:20 AM #4
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
4 Mar 2013 3:38 AM #5
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?
4 Mar 2013 5:28 AM #6
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