Ticket #2528139 (closed enhancement)

Reporter


Fam Lam
Opened: 01/20/12
Last modified: 12/12/12
Status: closed
Type: enhancement
Resolution: wontfix

Owner


Satyen Desai
Target Release:
Priority:
Summary: Option to keep newlines
Description:

Hi,

Is it possible to implement an option to keep newlines when minifying js?
If this would be possible, I could just shrink the variables of the script, and still being able to know where the exact error happened, if a user reports an error shown in the console (which contains
the line number in for example Chrome). Currently I have to keep the variables as they are, so the user can tell me the exact line, so I can find them myself in the code (hoping it is an unique
line).
Further, for bandwidth reasons: making the variables very small and keeping newlines makes much smaller files than removing newlines and keeping variables.

Thanks!
Famlam

Type: enhancement Observed in Version: 2.4.7
Component: YUICompressor Severity: S3 (normal)
Assigned To: Satyen Desai Target Release:
Location: Priority:
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from new to closed

Jenny Donnelly

YUI Developer

Posted: 12/12/12

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.