13 Feb 2014 4:29 AM #1
Strip whitespace and comments with Sencha Cmd 4.x
I used to strip whitespace and comments from my all-classes.js with Sencha Cmd 3.x by adding the property build.compression.strip=1 to my production.properties config. The flag is active, as I was told by "sencha ant .props":
[INF] [echoproperties] build.compression=
[INF] [echoproperties] build.compression.closure=0
[INF] [echoproperties] build.compression.strip=1
[INF] [echoproperties] build.compression.ugilfy=0
[INF] [echoproperties] build.compression.yui=0
Then I migrated to Sencha Cmd 4.0 and now this flag does not work anymore.
Does anyone know how to strip whitespace and comments with Sencha Cmd 4.x?
13 Feb 2014 6:36 PM #2
Check out the following post. I hope it helps.
http://www.sencha.com/forum/showthre...l=1#post990738Get more personalized support via a support subscription.
Want to learn Sencha Touch 2? Check out
Sencha Touch in Action
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
When posting code, please use BBCode's CODE tags.
Need to include a test case use:
The official Sencha Fiddle
18 Feb 2014 2:27 AM #3
Yes, it did, thank you, I now use the x-strip-js ant task as an after-page build step