21 Feb 2013 12:39 PM #1
YUI Compressor Options
Is there any way to set the options for YUI Compressor when generating a production build through CMD? Specifically I am interested in preserving line breaks (--line-break) for remote error tracking purposes.
24 Feb 2013 5:46 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I do not believe there is a way to configure YUI compressor.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
25 Feb 2013 3:44 PM #3
Is this something that could be considered for future updates? Without that option using Sencha CMD does not allow for remote JS error reporting, since these reports are pretty useless when they all return line number 1.
4 Mar 2013 8:51 PM #4
+1 for allowing to pass configuration options to YUI (or closure) compiler.
25 Apr 2013 7:56 AM #5
25 Apr 2013 1:06 PM #6
Integrate CMD into Ant to configure options
You can specify YUI compressor options if you call Sencha CMD through Ant. http://docs.sencha.com/extjs/4.1.3/#!/guide/command_ant
Essentially, after your compile, run the <x-compress-js linebreak="80"> task.