Skip to content

Commit

Permalink
Uglifier -> Terser
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed Oct 28, 2024
1 parent b3e7e4f commit d878efd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -424,7 +424,7 @@ DEPENDENCIES
selenium-webdriver
sprockets
sprockets-rails
uglifier
terser
webdrivers
webmock
will_paginate
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d878efd

Please sign in to comment.