Skip to content

Instantly share code, notes, and snippets.

@cacheflow
Created July 25, 2016 20:32
Show Gist options
  • Save cacheflow/8492b3c0bf0862dcaa9ae8c38209894c to your computer and use it in GitHub Desktop.
Save cacheflow/8492b3c0bf0862dcaa9ae8c38209894c to your computer and use it in GitHub Desktop.
JS_PATH = "app/assets/javascripts/**/*.js";
Dir[JS_PATH].each do |file_name|
puts "\n#{file_name}"
puts Uglifier.compile(File.read(file_name))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment