Skip to content

Instantly share code, notes, and snippets.

@elidickinson
Created May 22, 2013 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elidickinson/5628253 to your computer and use it in GitHub Desktop.
Save elidickinson/5628253 to your computer and use it in GitHub Desktop.
Minify your JS using the UglifyJS online API generously provided at http://marijnhaverbeke.nl/uglifyjs
{
"cmd": ["curl","-s","-S","--write-out", "Response code: %{http_code}; Total time: %{time_total}\n","-o","$file_base_name.min.js","--data-urlencode","js_code@$file","http://marijnhaverbeke.nl/uglifyjs"],
"selector": "source.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment