Skip to content

Instantly share code, notes, and snippets.

@kascote
Created December 7, 2017 21:31
Show Gist options
  • Save kascote/795d6cfea01caa4823aa5e144103ab8d to your computer and use it in GitHub Desktop.
Save kascote/795d6cfea01caa4823aa5e144103ab8d to your computer and use it in GitHub Desktop.
Uglifiers don't return the filename with the error
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