-
21 Feb 2013 12:39 PM #1
YUI Compressor Options
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 #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
I do not believe there is a way to configure YUI compressor.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost 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
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.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote