Skip to content

Commit

Permalink
Merge pull request #1754 from alphagov/move-from-uglifer-to-terser
Browse files Browse the repository at this point in the history
Move from Uglifier to Terser
  • Loading branch information
MartinJJones committed May 2, 2024
2 parents 4beaf54 + dd39040 commit 80d1537
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 @@ -15,7 +15,7 @@ gem "plek"
gem "ratelimit"
gem "slimmer"
gem "sprockets-rails"
gem "uglifier"
gem "terser"

group :development, :test do
gem "climate_control"
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Expand Up @@ -111,7 +111,7 @@ GEM
domain_name (0.6.20240107)
drb (2.2.1)
erubi (1.12.0)
execjs (2.8.1)
execjs (2.9.1)
gds-api-adapters (95.1.0)
addressable
link_header
Expand Down Expand Up @@ -603,13 +603,13 @@ GEM
sprockets (>= 3.0.0)
statsd-ruby (1.5.0)
stringio (3.1.0)
terser (1.2.2)
execjs (>= 0.3.0, < 3)
thor (1.3.1)
timecop (0.9.8)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.5.0)
webmock (3.23.0)
addressable (>= 2.8.0)
Expand Down Expand Up @@ -651,8 +651,8 @@ DEPENDENCIES
simplecov
slimmer
sprockets-rails
terser
timecop
uglifier
webmock

RUBY VERSION
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -25,7 +25,7 @@
config.public_file_server.enabled = false

# Compress JS using a preprocessor.
config.assets.js_compressor = :uglifier
config.assets.js_compressor = :terser

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
Expand Down

0 comments on commit 80d1537

Please sign in to comment.