Created
November 24, 2016 10:13
-
-
Save kusakusakusa/b18b5032a19c366f14ba295c7211bd43 to your computer and use it in GitHub Desktop.
Exec.js error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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