Skip to content

Commit

Permalink
Merge pull request #4051 from alphagov/move-from-uglifier-to-terser
Browse files Browse the repository at this point in the history
Move from Uglifier to Terser
  • Loading branch information
MartinJJones committed May 7, 2024
2 parents 3afc45f + e6a4188 commit e968a55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -19,7 +19,7 @@ gem "rails-i18n"
gem "rails_translation_manager"
gem "slimmer"
gem "sprockets-rails"
gem "uglifier"
gem "terser"
gem "uk_postcode"

group :development do
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Expand Up @@ -133,7 +133,7 @@ GEM
railties (>= 6.1)
drb (2.2.1)
erubi (1.12.0)
execjs (2.8.1)
execjs (2.9.1)
expgen (0.1.1)
parslet
ffi (1.16.3)
Expand Down Expand Up @@ -678,15 +678,15 @@ GEM
tins (~> 1.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
terser (1.2.2)
execjs (>= 0.3.0, < 3)
thor (1.3.1)
timecop (0.9.8)
timeout (0.4.1)
tins (1.32.1)
sync
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
uk_postcode (2.1.8)
unicode-display_width (2.5.0)
webmock (3.23.0)
Expand Down Expand Up @@ -739,8 +739,8 @@ DEPENDENCIES
simplecov
slimmer
sprockets-rails
terser
timecop
uglifier
uk_postcode
webmock

Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -89,7 +89,7 @@

config.assets.compress = true
config.assets.digest = true
config.assets.js_compressor = :uglifier
config.assets.js_compressor = :terser

# Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = ENV["HEROKU_APP_NAME"] ? nil : "X-Sendfile"
Expand Down

0 comments on commit e968a55

Please sign in to comment.