I am trying to minify sencha 5 project with sencha cmd, but it always failed.
sencha generate app -ext demoApp ./demoApp
Then I try to minify the app, by typing
sencha app build production
For blank project, the minify success, I can run in my local web server. Then I change the existing project that have been created, just add one button to display popup window (and the information displayed by xtype "displayfield").
Before it minified & after add one button to display popup, it works normal (tested in browser, click the button, the popup and information showed correctly). After minified, it doesn't work,
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 "
Is it weird? If I change the xtype "displayfield" to "textfield" it works normal, or if I change to "button" and change fieldLabel to text, it works!
Anyone have succesfull minify sencha 5 with sencha cmd? My Sencha Cmd version is 5.1.2.52 and I use sencha 5.1.0.107.
I attach the original app folder code original in here and my changes app code in here
Many thanks!
Add into requires 'Ext.form.field.Display'
requires: [
'demoApp.view.window.WindowViewController',
'Ext.form.field.Display'
],
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.