Skip to content

Instantly share code, notes, and snippets.

@edwinlab
Created April 17, 2017 06:32
Show Gist options
  • Select an option

  • Save edwinlab/2af63438ebec7208cb0e4b71fcbcfa2e to your computer and use it in GitHub Desktop.

Select an option

Save edwinlab/2af63438ebec7208cb0e4b71fcbcfa2e 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