Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RiansyahTohamba/c1bff8b665e771d56aa0d5ccea95d71f to your computer and use it in GitHub Desktop.
Save RiansyahTohamba/c1bff8b665e771d56aa0d5ccea95d71f to your computer and use it in GitHub Desktop.
show us the file and the line where the Uglifier is making the problem.
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