This is what I have tried so far:
Ext.application({ .... // This doesn't do anything }) new Ext.Viewport({ // This throws an error }) I know it's recommended to use Sencha Cmd, but I wanna simplify the workflow as the scripts will be used in other context, so please show the way without Sencha Cmd.
P/S: The application I'm working on undertaking an upgrade from version 3.4 to 6.
Edit: I expect Extjs 6 can be used in this way:
<!-- main html --> <script src='ext-all.js' ></script> <script src='app-all.js' ></script> As you can see, the way to load application scripts is old school. In app-all.js, I tried the approaches above but none worked. A work around I've used is to init a container with width = 100% and height = 100%.
new Ext.Viewportto init the app for inline script, but I haven't found any equivalent in v6. Usingnew Ext.Viewportdoes throw an Error though:Ext.Viewport is not a constructor