Skip to content

Instantly share code, notes, and snippets.

@Vic-L Vic-L/code snippet
Created Nov 24, 2016

Embed
What would you like to do?
Exec.js error
JS_PATH = 'app/assets/javascripts/**/*.js'
Dir[JS_PATH].each do |file|
begin
Uglifier.compile(File.read(file))
rescue => e
puts e.message
puts file
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.