README

changeset 35
8843ea9f9e27
parent 17
3d4ba37b1554
child 40
ab43c18f9d31
equal deleted inserted replaced
34:0e34461ab2a6 35:8843ea9f9e27
45 minified output, but it can speed up loading (not that you would notice it anyway, since the Lua compiler is so fast). 45 minified output, but it can speed up loading (not that you would notice it anyway, since the Lua compiler is so fast).
46 46
47 #### --compile 47 #### --compile
48 Enables compilation of the output file. 48 Enables compilation of the output file.
49 49
50 ### Debug
51 Due to the way Squish combines multiple scripts into one, sometimes when a squished script raises an error the traceback
52 will be fairly unhelpful, and point to a line in the unreadable squished script. This is where the debug extension comes in!
53
54 #### --enable-debug
55 This option includes some code into the squished file which will restore the filenames and line numbers in error messages and
56 tracebacks. This option will increase the size of the output by no more than about 6KB, so may be very much worth it when
57 squishing large tricky-to-debug applications and libraries.
58
59 **Note:** Minification may interfere with the line number calculation, use --minify-level=debug to enable all features of minify
60 that don't change line numbers, and everything will be fine.
61
50 ## Squishy reference 62 ## Squishy reference
51 63
52 A squishy file is actually a Lua script which calls some Squish functions. These functions are listed here. 64 A squishy file is actually a Lua script which calls some Squish functions. These functions are listed here.
53 65
54 ### Module "name" "path" 66 ### Module "name" "path"

mercurial