Skip to content

Commit

Permalink
Switch JS asset compression to maintained fork: Terser
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Dec 2, 2023
1 parent 2111a8c commit d0f28f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WcaOnRails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gem 'rails-i18n'
gem 'i18n-js'
gem 'activerecord-import'
gem 'sass-rails'
gem 'uglifier'
gem 'terser'
gem 'faraday'
gem 'faraday-retry'
gem 'sdoc', group: :doc
Expand Down
6 changes: 3 additions & 3 deletions WcaOnRails/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@ GEM
superconfig (2.1.1)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
terser (1.1.20)
execjs (>= 0.3.0, < 3)
thor (1.3.0)
tilt (2.1.0)
timecop (0.9.8)
Expand All @@ -743,8 +745,6 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
Expand Down Expand Up @@ -889,11 +889,11 @@ DEPENDENCIES
strip_attributes
stripe
superconfig
terser
time_will_tell!
timecop
translighterate
twitter_cldr
uglifier
unicorn
valid_email
vault
Expand Down
2 changes: 1 addition & 1 deletion WcaOnRails/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,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 d0f28f3

Please sign in to comment.