Search code examples
javascriptextjssencha-cmd

extjs 6.0 sencha cmd to compile only my javascript code


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?


Solution

  • 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.