Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Ruby shell script wrapper around YUI compressor.
#!/usr/bin/env ruby
file_to_minify = ARGV.first
system "java -jar /Users/jaredmehle/Documents/workspace/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar #{file_to_minify} -o #{file_to_minify.split('.').first}-min.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.