问题
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