diff --git a/Gemfile b/Gemfile index beb26b377..ac458f514 100644 --- a/Gemfile +++ b/Gemfile @@ -34,7 +34,7 @@ gem 'rolify' gem 'sassc-rails' gem 'simple_form' gem 'turbolinks' -gem 'uglifier' +gem 'terser', '~> 1.1' gem 'will_paginate' gem 'sprockets-rails' diff --git a/Gemfile.lock b/Gemfile.lock index d99223bb6..5153faea8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -405,6 +405,8 @@ GEM ssrf_filter (1.1.1) stripe (8.6.0) temple (0.10.2) + terser (1.1.17) + execjs (>= 0.3.0, < 3) thor (1.2.2) thread_safe (0.3.6) tilt (2.2.0) @@ -416,8 +418,6 @@ GEM thread_safe (~> 0.1) tzinfo-data (1.2023.3) tzinfo (>= 1.0.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) unicode-display_width (2.4.2) uniform_notifier (1.16.0) version_gem (1.1.3) @@ -507,9 +507,9 @@ DEPENDENCIES spring-watcher-listen (~> 2.0.0) sprockets-rails stripe + terser (~> 1.1) turbolinks tzinfo-data - uglifier web-console (>= 3.3.0) webdrivers will_paginate diff --git a/config/environments/production.rb b/config/environments/production.rb index 8c1e6ad64..f5bf904dc 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -23,7 +23,7 @@ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier + config.assets.js_compressor = :terser # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed.