In my Sencha application I have a Config.js file containing some service URLs:
Ext.define('MyApp.utils.Config', {
singleton : true,
config : {
authBaseUrl : '...',
serviceBaseUrl : '...',
reportsBaseUrl : '...',
imagesUrl : '...'
},
constructor : function (config) {
this.initConfig(config);
}
});
Before deployment I use the
sencha app build
command from the Sencha Touch SDK to minify and concatenate files etc.
My problem is that the build process will also add config.js to the minified app.js file, although it would be very useful if I could edit it without the need of rebuilding / redeploying the whole application. I haven't found any means to change the behaviour of the build process.
So after building the application I would like to have these three js files:
- sdk/sencha-touch.js (concatenated, minified, cached in localstorage after the first download)
app.js (concatenated, minified, cached in localstorage after the first download)
config.js (left untouched, without caching it in the localstorage)