Skip to content

Instantly share code, notes, and snippets.

@sasha-id
Created January 7, 2019 15:16
Show Gist options
  • Save sasha-id/e2846bff5d2fb5abe171727532a9416b to your computer and use it in GitHub Desktop.
Save sasha-id/e2846bff5d2fb5abe171727532a9416b to your computer and use it in GitHub Desktop.
Hot to find failing asset file on rake assets:precompile
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