Within my Sencha application, there is a Config.js file that holds various service URLs:
Ext.define('MyApp.utils.Config', {
singleton : true,
config : {
authBaseUrl : '...',
serviceBaseUrl : '...',
reportsBaseUrl : '...',
imagesUrl : '...'
},
constructor : function (config) {
this.initConfig(config);
}
});
Prior to deployment, I utilize the
sencha app build
command from the Sencha Touch SDK to compress and combine files.
The issue arises after the build process includes config.js in the minified app.js file. It would be beneficial if I could make edits without having to rebuild or redeploy the entire application. Despite efforts, I have not discovered a way to alter this behavior within the build process.
Therefore, post-building the application, it is preferred to retain these three separate javascript files:
- sdk/sencha-touch.js (compressed, concatenated, cached locally)
app.js (compressed, concatenated, cached locally)
config.js (untouched, not cached locally)