README

changeset 61
b8af42b7ddf8
parent 44
5d710c0cfb45
child 64
4beddef56d73
equal deleted inserted replaced
60:e80882a6af57 61:b8af42b7ddf8
36 size by some kilobytes, even after full minification. It works by replacing Lua keywords with a single byte and 36 size by some kilobytes, even after full minification. It works by replacing Lua keywords with a single byte and
37 inserting code at the start of the script to expand the keywords when it is run. 37 inserting code at the start of the script to expand the keywords when it is run.
38 38
39 #### --uglify 39 #### --uglify
40 Enable the uglification filter. Default is to not uglify. 40 Enable the uglification filter. Default is to not uglify.
41
42 ### Gzip
43 Gzip, or rather the DEFLATE algorithm, is extremely good at compressing text-based data, including scripts. Using
44 this extension compresses the squished code, and adds some runtime decompression code. This decompression code adds
45 a little bit of time to the loading of the script, and adds 4K to the size of the generated code, but the overall
46 savings are usually well worth it.
47
48 #### --gzip
49 Compress the generated code with gzip. Requires the gzip command-line utility (for compression only).
41 50
42 ### Compile 51 ### Compile
43 Squish can compile the resulting file to Lua bytecode. This is experimental at this stage (you may get better results 52 Squish can compile the resulting file to Lua bytecode. This is experimental at this stage (you may get better results
44 with luac right now), however it's a work in progress. Compiling to bytecode can actually increase the size of 53 with luac right now), however it's a work in progress. Compiling to bytecode can actually increase the size of
45 minified output, but it can speed up loading (not that you would notice it anyway, since the Lua compiler is so fast). 54 minified output, but it can speed up loading (not that you would notice it anyway, since the Lua compiler is so fast).

mercurial