PDA

View Full Version : minifie sandbox library for an app written in a signle js file



angelo88
1 Aug 2013, 4:56 AM
hi guys! i write a script in a single js file that use extjs 4 sandbox.
The entire library is 1,4 mb. How i can minifie the size of library with sencha cmd. i read some tutorial but i receive fail to parse to js script. what is the cmd?
thanks in advance

tobiu
1 Aug 2013, 8:19 AM
For a custom build, do not use the ext-all but the ext lib.

It requires to use MVC (or at least to manually require the files you need), which get loaded with the microloader for development. When this works and the app was set up using sencha CMD (generate workspace, generate app), you can use

sencha app build

Best regards
tobiu