Skip to content

Commit

Permalink
Use terser compressor for better es6 support
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Sep 8, 2023
1 parent 9bd50ba commit 1ebdd3e
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 @@ -22,7 +22,7 @@ gem 'redis', '~> 4.8', require: %w[redis redis/connection/hiredis]
gem 'redis-namespace'
gem 'rubyzip', require: 'zip'
gem 'sassc-rails'
gem 'uglifier'
gem 'terser'

# Temporarily fix for ruby 3.1
gem 'net-imap', require: false
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ GEM
sshkit (1.21.5)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
terser (1.1.18)
execjs (>= 0.3.0, < 3)
thor (1.2.2)
tilt (2.2.0)
timeout (0.4.0)
Expand All @@ -362,8 +364,6 @@ GEM
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.4.2)
uniform_notifier (1.16.0)
websocket (1.2.9)
Expand Down Expand Up @@ -425,8 +425,8 @@ DEPENDENCIES
sassc-rails
selenium-webdriver
spring
terser
tzinfo-data
uglifier

RUBY VERSION
ruby 3.1.2p20
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 @@

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
config.assets.js_compressor = Uglifier.new harmony: true
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 1ebdd3e

Please sign in to comment.