I've been attempting to compress a Sencha 5 project using Sencha CMD, but I keep experiencing failures.
sencha generate app -ext demoApp ./demoApp
Then, in an effort to compress the application, I entered the following command:
sencha app build production
The compression was successful for a new project as I was able to run it on my local web server. However, when I made modifications to an existing project by adding a button to display a popup window (with information shown using "displayfield" xtype), the functionality worked fine before compression.
Before and after adding the button to show the popup, everything functioned normally when tested in a browser. But after compression, it stopped working.
GET http://localhost/test/sencha/demoApp/widget/displayfield.js?_dc=1429726459576 404 not found.
"NetworkError: 404 Not Found - http://localhost/test/sencha/demoApp/widget/displayfield.js?_dc=1429726459576"
I found it strange that changing the xtype from "displayfield" to "textfield" or replacing it with a button and modifying the fieldLabel to text allowed it to work properly.
Has anyone successfully compressed a Sencha 5 project using Sencha CMD? My Sencha Cmd version is 5.1.2.52 and I am using Sencha 5.1.0.107.
I have provided the original code of the app folder here, along with my modified version here.
Thank you!