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
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
77eb65b7f Stoyan Stefanov 02/25/10 test pases now
b1cfb3926 Stoyan Stefanov 02/25/10 Test passes now
969e675d0 Stoyan Stefanov 02/25/10 Removed BMH (not handled like all other strings), fix for ie6 handling of pseudo elements, strip extra space after special comments, trailing ";" fix, misc reorg
97a56b630 Stoyan Stefanov 02/24/10 updated to latest, strings and comments preservation, shorter mac/ie5 hack, safer empty blocks stripping
3885c2711 Satyen Desai 12/9/09 Added build_tmp to .gitignore in prep for hudson builds
9251317a1 Julien Lecomte 12/8/09 Changed custodian to ci-tools@
5305ba5f3 Satyen Desai 11/30/09 Added whitespace to test builds from yuisource
98310d3cd Isaac Z. Schlueter 10/19/09 Add failing test for [ticket 2009249]
bf1b5f7ff Isaac Z. Schlueter 10/19/09 Test to verify fix for charset+media bug [re 2495387]
92167fc12 Isaac Z. Schlueter 10/19/09 Update to remove empty rules properly even in @-rule blocks.
b85cdccac Isaac Z. Schlueter 10/19/09 Moved dollar-header.css test to dollar-header.css.FAIL, since it's failing.
9a26a7714 Isaac Z. Schlueter 10/19/09 Add some more tests. Make the suite.sh run but ignore any test ending in ".FAIL", and warn if the test passes.
f56134eb2 Isaac Z. Schlueter 10/1/09 Add failing test case ref 2495396
8adfcdfce Isaac Z. Schlueter 10/1/09 Add passing test case for ticket 2221764
34353eb4f Isaac Z. Schlueter 10/1/09 Passing test case to validate ticket 2221764.
6b0c13c94 Isaac Z. Schlueter 10/1/09 Add failing test case (ref 2459205)
96ae643f8 Isaac Z. Schlueter 09/27/09 Remove unnecessary semicolons.
eefafc3be Isaac Z. Schlueter 09/27/09 Use the most recent jar in the test script. Update the charset test to remove the added semicolons.
d45df6ce9 Isaac Z. Schlueter 09/27/09 Updates to fix [trac 2527991]. Be a bit more liberal in allowing spaces before ( characters.
The YUI Team is hiring.

Product Information

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

Developer Information

Development Version: 2.4.3
Tentative Release Date: 06/30/2010