Hi everybody.
and this file contains
Lots of store or controllers use this
But in production built, it seems that this file is not loaded before use or anything like this.
I have checked the app.js from prod and the file is included.
But when I launch the prod app, it fails
Does anyone has a clue on this ?
I certainly missed a litlle configuration.
Production built and singleton requirement
I have an issue with the production built. Others ares ok.
In my app.js, I have this :
Code:
Ext.application({ name: 'MyApp',
requires:
[
'MyApp.util.Config',
'Ext.MessageBox',
'MyApp.view.Main',
'Ext.data.proxy.LocalStorage'
],
...
and this file contains
Code:
Ext.define('MyApp.util.Config',
{
singleton : true,
config :
{
apiUrl : 'http://www.myapp.dev/',
...
Lots of store or controllers use this
Code:
MyApp.util.Config.getApiUrl():
But in production built, it seems that this file is not loaded before use or anything like this.
I have checked the app.js from prod and the file is included.
But when I launch the prod app, it fails
Does anyone has a clue on this ?
I certainly missed a litlle configuration.
Thx.
Sylvain
Production built and singleton requirement
Aucun commentaire:
Enregistrer un commentaire