YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

YUI Compressor

YUI Compressor is an open source tool that supports the compression of both JavaScript and CSS files. The JavaScript compression removes comments and white-spaces as well as obfuscates local variables using the smallest possible variable name. CSS compression is done using a regular-expression-based CSS minifier.

Next Release in Development: 2.4.3

The next release of the YUI Compressor will be version 2.4.3. This release will be a bug fix release. The list of tickets that summarizes the release content planned for YUI Compressor 2.4.3 is available in the View Tickets page of this project.

Reporting Defects / Making Enhancement Requests

YUILibrary.com is the proper location for reporting defects found in the YUI Compressor code as well as for logging enhancement requests for consideration for future updates. You can review existing tickets filed for YUI Compressor by clicking the View Tickets link at the top of this page. Please review the YUI guidelines for filing defects and making enhancement requests before adding new tickets to the YUI Compressor project using the New Ticket link above.

*Only logged in users can submit bugs and feature requests.

Latest Commits for YUI Compressor

SHA1 Developer Date Message
c8f3348cb Adam Moore 08/13/10 removed the other undeclared identifier warning
c3b3a551b Reid Burke 08/10/10 Revert "Add a new --globals option to pre-declare global variables; e.g., "YUI""
d27f3adbf Robert Tsai 08/10/10 Add a new --globals option to pre-declare global variables; e.g., "YUI"
e7ea458ae Stoyan Stefanov 05/19/10 preserve ! in special strings, preserve child >/**/ selector hack, updated tests
d0464c4dd Adam Moore 05/18/10 .
0a08b3b40 Adam Moore 05/18/10 Preserved /*! comments no longer have the bang stripped [bug #2528008].
336986be7 Stoyan Stefanov 05/15/10 updated 2.4.4 changelog
2aae9ee68 Stoyan Stefanov 05/15/10 lowercase colors, more tests
81e1d7f07 Stoyan Stefanov 05/15/10 shorter alpha opacity filter, more tests, case-insensitive background-position replace
77b9f9dfb Stoyan Stefanov 05/15/10 added test for bug #2527998
335ff37d7 Stoyan Stefanov 05/15/10 new test for exception with $ replacement bug
a6cfd3ff1 Stoyan Stefanov 05/15/10 escape replacement string
b73265b5f Adam Moore 05/11/10 Applied a patch that adds support for wildcard input and output file
87d7e4b3c Stoyan Stefanov 05/11/10 up to date with the JS version (strings and comments preservation jazz)
e7ac76c96 Stoyan Stefanov 05/11/10 removed unused vars
ce3998b3a Stoyan Stefanov 03/25/10 Fix for quoted strings in comments, thanks to Mark Norman Francis for the catch. Added a new test. JSLint tweaks.
1e10c3504 Adam Moore 03/17/10 Using UTF-8 as the default encoding rather than System.getProperty("file.encoding") [fixes #2528014].
6e67ea01b Adam Moore 03/17/10 useage info is sent to stderr instead of stdout. [fixes #2095077].
d84c5da00 Stoyan Stefanov 03/12/10 added test for rgba() colors
3a3b110fb Stoyan Stefanov 03/10/10 Updated the zero-collapsing parts expect either ; or }
8a6d59eef Stoyan Stefanov 02/27/10 Moved strings preservation before comments stripping, tests uupdated
7bfc41698 Stoyan Stefanov 02/25/10 New and updated tests
f93c26731 Stoyan Stefanov 02/25/10 Also run the tests using rhino and the JS port of cssmin
ae0ca01f5 Stoyan Stefanov 02/25/10 initial checkin, tests for the JS port of CSSmin
d425e8143 Stoyan Stefanov 02/25/10 Up to date with the JS port - preserving strings, special comments, safer cleanup of empty definitions, pseudo elements, BMH, etc
YUI 3.1.2 is an important security update for all YUI 3.1.x and 3.2.0pr1 implementers.

Product Information

Current Version: 2.4.2
Release Date: 06/10/2009

Developer Information

Development Version: 2.4.3
Tentative Release Date: Not Planned