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)Mitchell Simoens @SenchaMitch
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 firstname.lastname@example.org
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
4 Mar 2013 5:31 AM #7
Thanks this is almost good. But now it is missing:
4 Mar 2013 5:34 AM #8
Probably you have to include Extensible src in classpath , or include it togather with ext-all.js
4 Mar 2013 5:40 AM #9
In my application I using the calendar
with xtype: 'extensible.calendarpanel'
there is an extensible-all.js file which contains all the necessery components (but unfortunately this is not compatible with to sencha cmd 3 compile strutcure). If I load the extensible-all.js after extjs and before my application this is working without "compile". So somehow I need to exclude all the references (trough xtypes) to the calendar, because it will be loaded before the application from the index.html. Any idea?
4 Mar 2013 5:50 AM #10
I've used Extensible lib only minor times, but cant see why its incompatible with sencha cmd, have you tried to add extensible-1.5.1/src/ to classpath and try to compile?
Although note my post here - you might try to create sencha app project and run all commands from it, because at least compiling works different if running from app or custom folder