public
Last active

Ruby shell script wrapper around YUI compressor.

  • Download Gist
yuicompressor.sh
Shell
1 2 3
#!/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"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.