Created
April 22, 2013 23:10
-
-
Save sspencer/5439384 to your computer and use it in GitHub Desktop.
Shell function to send JS file thru closure. Usage: closurejs file.js
This file contains hidden or 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
closurejs() | |
{ | |
curl -s --data output_info=compiled_code --data-urlencode js_code@${1} http://closure-compiler.appspot.com/compile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment