57 squishing large tricky-to-debug applications and libraries. |
57 squishing large tricky-to-debug applications and libraries. |
58 |
58 |
59 **Note:** Minification may interfere with the line number calculation, use --minify-level=debug to enable all features of minify |
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. |
60 that don't change line numbers, and everything will be fine. |
61 |
61 |
|
62 ### Virtual IO |
|
63 Squish allows you to pack resources (any file) into the squished output. Sometimes it would be convenient to access these through |
|
64 the standard Lua io interface. Well now you can! :) |
|
65 |
|
66 #### --virtual-io |
|
67 Inserts code into the squished output which replaces io.open, io.lines, dofile and loadfile. The new functions will first check |
|
68 whether the specified filename matches a packed resource's name. If it does then it will operate on that resource instead of an |
|
69 actual file. If the filename does _not_ match a resource then the function passes on to the real Lua functions. |
|
70 |
62 ## Squishy reference |
71 ## Squishy reference |
63 |
72 |
64 A squishy file is actually a Lua script which calls some Squish functions. These functions are listed here. |
73 A squishy file is actually a Lua script which calls some Squish functions. These functions are listed here. |
65 |
74 |
66 ### Module "name" "path" |
75 ### Module "name" "path" |