Skip to content

Commit

Permalink
merge cleanup from cowboy.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Apr 29, 2011
2 parents cbed62c + 5900d26 commit 1633e32
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 319 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
modernizr.min.js
13 changes: 13 additions & 0 deletions compress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#/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

0 comments on commit 1633e32

Please sign in to comment.