I am migrating an application from 4.1 to 4.2. With 4.1 we generated a js file with all the application js and included ext-all.js separately. This seemed to work well.
For technical reasons (see below) I do not want sencha build to create one huge js file with my application and ext combined. Is there an equivalent of ext-all.js? I have tried including ext.js but I get the error:
Uncaught Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.data.ModelAs a workaround I am running 'sencha build app' on a minimum application which only includes my Ext dependencies. This works but seems like a hack.
The reason I want to split the Ext js is because our website contains a number of services which are implemented as separate applications. I do not want to download the Ext js for each service, I would rather download it once and let the browser cache it. I am also of the opinion that splitting the js files is good for performance because the browser can download the 2 js files asynchronously. My app js file is roughly the same size as the Ext js file so I think the performance hit of having an extra request is more than offset with the ability to download the 2 files concurrently.