Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (10 sloc) 0.294 kB
#/bin/sh
# sudo npm install -g uglify-js
IN=modernizr.js
OUT=modernizr.min.js
SIZE_MIN=$(uglifyjs "$IN" --extra --unsafe | tee "$OUT" | wc -c)
SIZE_GZIP=$(gzip -nfc --best "$OUT" | wc -c)
echo $SIZE_MIN bytes minified, $SIZE_GZIP bytes gzipped
if [ "$1" == "--test" ]; then
rm "$OUT"
fi
Jump to Line
Something went wrong with that request. Please try again.