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 13 lines (9 sloc) 0.262 kb
#/bin/bash
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.