# HG changeset patch # User Matthew Wild # Date 1274969342 -3600 # Node ID 4beddef56d732d756d96db66244d81f1c16cfe75 # Parent f42b3815ce775e05c000b8f48179df715cf8f5ea README: Update for new --uglify-level=full diff -r f42b3815ce77 -r 4beddef56d73 README --- a/README Thu May 27 15:04:58 2010 +0100 +++ b/README Thu May 27 15:09:02 2010 +0100 @@ -34,11 +34,16 @@ ### Uglify 'Uglification' is the name Squish gives to a certain basic form of compression. With large files it can reduce the size by some kilobytes, even after full minification. It works by replacing Lua keywords with a single byte and -inserting code at the start of the script to expand the keywords when it is run. +inserting some short code at the start of the script to expand the keywords when it is run. #### --uglify Enable the uglification filter. Default is to not uglify. +#### --uglify-level=LEVEL +If the level specified is "full" then Squish will extend its replacement to identifiers and string literals, as +well as Lua keywords. It first assigns each identifier and string a score based on its length and how many times +it appears in the file. The top scorers are assigned single-byte identifiers and replaced the same as the keywords. + ### Gzip Gzip, or rather the DEFLATE algorithm, is extremely good at compressing text-based data, including scripts. Using this extension compresses the squished code, and adds some runtime decompression code. This decompression code adds