I'm building an app with ExtJS 6 and Sencha CMD 6.5.4.
I have some custom scripts running in my app's index.html and I'd like to keep all ExtJS confined to the minified bundle(s) generated by Sencha CMD, keeping all bootstrap code out of the index file. I've succeeded in doing that by following this post and putting this in app.json:
"output": {
"base": "${workspace.build.dir}/${build.environment}/${app.name}",
"microloader": {
"path": "microloader.js",
"embed": false,
"enable": false
}
},
I would also like to split the ExtJS framework into a separate bundle, and reference both that and the custom app bundle as script tags in index.html. I've succeeded in doing that by following this post and putting this in app.json:
"output": {
...
"framework": {
"enable": true
}
}
Question: Is it possible to accomplish both these things at the same time? If I try to do both, CMD inserts the Boot.js module into my custom app bundle and not the framework bundle. The framework bundle would need to load first in the client, but it fails with JS errors because Ext.Boot is not yet defined.
Is there a way to have CMD insert the Ext.Boot code into the start of the framework.js bundle rather than into the custom app bundle? It could probably be solved by letting CMD do what it wants to do and create its own index.html file containing an inline definition for Ext.Boot independent of either bundle, but again I have instructions to avoid this if at all possible.
The Sencha CMD guide for app.json seems rather incomplete - I'm not sure where to find clear, complete documentation for all the options available for this file.