Created
December 8, 2017 16:32
-
-
Save andreleoni/8a0d4a8b7e40a1f33febfda0a1c04ec3 to your computer and use it in GitHub Desktop.
resolve uglify precompile problems with "rake assets:precompile" in Rails Console
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_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