extjs 6.0 sencha cmd to compile only my javascript code

只谈情不闲聊 提交于 2019-12-20 06:40:50

问题


I use sencha extjs 6.0 ,and it always compile all extjs code to single one file .What I need is that : 1 the need extjs is compiled to one single file ,I know which packages are needed ,so it can be static and not need to change . 2 then sencha cmd compile my own javascript file to one single file ,so I can update to web server and let client download it less size file .Because the extjs file size is large than 600K with compression . Anyone have idea how to do it?


回答1:


Go into .sencha/app/production.properties and add a new line:

enable.split.mode=true

Then compile, and you should get two files, one big framework.js and one smaller app.js.



来源:https://stackoverflow.com/questions/39950063/extjs-6-0-sencha-cmd-to-compile-only-my-javascript-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!