0
votes

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

1 Answers

3
votes

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.