Fri, 05 May 2017 09:47:52 +0100
squish: Optionally add in a 5.2-compatible module() function (5.2's own compat function is broken)
--module-compat or --no-module-compat, default is --module-compat if running under 5.2+ (detected at runtime).
When compiled with the appropriate flags, Lua 5.2 provides a module() function for backwards compatibility with
5.1. However 5.1's version of the function changed function environments, while 5.2's version changes the global
environment, which breaks through squish's per-module sandbox functions.
12 | 1 | |
34 | 2 | OPTIONS=-q --with-minify --with-uglify --with-compile --with-virtual-io |
12 | 3 | |
4 | squish: squish.lua squishy | |
34 | 5 | ./squish.lua $(OPTIONS) # Bootstrap squish |
6 | chmod +x squish | |
60
e80882a6af57
Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents:
34
diff
changeset
|
7 | ./squish -q gzip # Minify gunzip code |
34 | 8 | ./squish -q debug # Minify debug code |
60
e80882a6af57
Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents:
34
diff
changeset
|
9 | ./squish $(OPTIONS) --with-gzip --with-debug # Build squish with minified gzip/debug |
12 | 10 | |
11 | install: squish | |
12 | install squish /usr/local/bin/squish | |
13 | ||
14 | clean: | |
60
e80882a6af57
Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents:
34
diff
changeset
|
15 | rm squish squish.debug gunzip.lua |