Skip to content

Commit

Permalink
Fixes #36936 - Switch to terser
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Nov 29, 2023
1 parent 3054853 commit 54fac5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundler.d/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
gem 'gettext_i18n_rails_js', '~> 1.4'
gem 'po_to_json', '~> 1.1'
gem 'execjs', '>= 1.4.0', '< 3.0'
gem 'uglifier', '>= 1.0.3'
gem 'terser', '~> 1.1'
gem 'sass-rails', '~> 6.0'
# this one is a dependecy for x-editable-rails
gem 'coffee-rails', '~> 5.0.0'
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
config.public_file_server.enabled = ENV.fetch('RAILS_SERVE_STATIC_FILES', false) == 'true'

# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
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 54fac5e

Please sign in to comment.