Skip to content

Instantly share code, notes, and snippets.

@itsprdp
Created September 23, 2016 14:18
Show Gist options
  • Save itsprdp/96a0c3e3531e8e93a9a606448b494803 to your computer and use it in GitHub Desktop.
Save itsprdp/96a0c3e3531e8e93a9a606448b494803 to your computer and use it in GitHub Desktop.
Rails JS precompile assets debugger
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