From d878efdf616cd2243878331f57addc4e6c86441a Mon Sep 17 00:00:00 2001 From: Nat Budin Date: Mon, 28 Oct 2024 13:15:25 -0700 Subject: [PATCH] Uglifier -> Terser --- Gemfile | 2 +- Gemfile.lock | 6 +++--- config/environments/production.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index a105679..f7c9828 100644 --- a/Gemfile +++ b/Gemfile @@ -19,7 +19,7 @@ gem "haml" gem "sprockets-rails" gem "sprockets" gem "sass-rails" -gem "uglifier" +gem "terser" gem "bootstrap-sass", "~> 3.4.1" gem "autoprefixer-rails" gem "coffee-rails" diff --git a/Gemfile.lock b/Gemfile.lock index 00ffea7..f8d32ed 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -355,13 +355,13 @@ GEM sprockets (>= 3.0.0) stringio (3.1.1) temple (0.10.3) + terser (1.2.4) + execjs (>= 0.3.0, < 3) thor (1.3.2) tilt (2.4.0) timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - uglifier (4.2.1) - execjs (>= 0.3.0, < 3) useragent (0.16.10) warden (1.2.9) rack (>= 2.0.9) @@ -424,7 +424,7 @@ DEPENDENCIES selenium-webdriver sprockets sprockets-rails - uglifier + terser webdrivers webmock will_paginate diff --git a/config/environments/production.rb b/config/environments/production.rb index 74ff15a..8da08a0 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -26,7 +26,7 @@ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = Uglifier.new(harmony: true) + config.assets.js_compressor = :terser config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed.