Skip to content

Instantly share code, notes, and snippets.

@rtuin rtuin/minify_javascript.rb
Last active Dec 16, 2015

What would you like to do?
before "deploy:finalize_update", "deploy:minify_javascript"
namespace :deploy do
task :minify_javascript do
run_locally "cd #{copy_cache} && java -jar yuicompressor-2.4.7.jar -o public/js/script.min.js public/js/script.unpacked.js"
top.upload(File.join("#{copy_cache}", "/public/js/script.min.js"), "#{release_path}/public/js/script.min.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.