Compile assets via console and find file with issue

PHOTO EMBED

Mon May 11 2020 16:41:09 GMT+0000 (UTC)

Saved by @ayazahmadtarar #ruby #rubyonrails

namespace :javascript do
  desc "Compiles each js file"
  task validate: :environment do
    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
  end
end
content_copyCOPY

Find Issues in Assets Files