I have a Sencha Touch App generated with Sencha Architect. The intention is to deploy it on Android devices but retain a demo copy that can work via a normal browser over the web.
The challenge is (without making any changes to the code) it works perfectly when (1) packaged and deployed to the Android device and (2) run under preview in Architect (i.e. when the build optimizations are not carried out. However when I run "Build Web App", or "Run Build Target", certain errors come up in the console and some events no longer work. Some included .js files (which were not complained about in scenarios  and  mentioned above now get reported as missing).
In the attached screenshot, "A" is what shows when build target is run. "B" shows in preview and also works in the Android App.
How can this problem be corrected?