Skip to content

Instantly share code, notes, and snippets.

@marcusandre
Last active December 25, 2015 01:49
Show Gist options
  • Save marcusandre/6898426 to your computer and use it in GitHub Desktop.
Save marcusandre/6898426 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
uglifyjs -nc script.js > script.min.js
gzip -f -c --best script.min.js > script.min.js.gz
uglifyjs --max-line-len 80 -nc script.js
echo "Done"
wc -c scripts.min.js.gz
wc -c scripts.min.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment