Skip to content

Instantly share code, notes, and snippets.

@vlaube
Created May 21, 2018 17:40
Show Gist options
  • Save vlaube/8bf68a5c170be7493dd8f5f63189f88f to your computer and use it in GitHub Desktop.
Save vlaube/8bf68a5c170be7493dd8f5f63189f88f 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