Created
September 8, 2014 22:55
-
-
Save tmcw/157df4eb762efe7d7ea8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "raw kb" | |
units "`cat $1 | wc -c` bytes" "kilobytes" | |
echo "uglified kb" | |
units "`uglifyjs $1 | wc -c` bytes" "kilobytes" | |
echo "gzipped kb" | |
units "`uglifyjs $1 | gzip -9f | wc -c` bytes" "kilobytes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment