vendredi 10 octobre 2014

CMD/EXT5: Production build javascript bundle file order

Hello,

I'm building/managing an ExtJS5 app with sencha cmd. I'm bringing in a few external javascript libraries and some parts of the app that are not ExtJS classes (which means I can't reference them using the requires config) using the js array in app.json. I've set includeInBundle to true on all of these, because I want them minified and included in the app.js bundle that is generated for the production build. This works OK for the debug environment, these external and non-Ext files are loaded before all of my app's Ext code.


But in the app.js that is generated for the production build, the order of the files included in the bundle is seemingly random. All of my application's Ext code is included in app.js before these other javascript files, so I cannot reference anything from those files in the Ext define statements in my Ext code.


How can I control the order that the files are placed into the app.js production bundle? Is there a better way to include external and/or non-Ext javascripts?


Thanks.






CMD/EXT5: Production build javascript bundle file order

Aucun commentaire:

Enregistrer un commentaire