Skip to content

Commit

Permalink
Switch to terser
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Jan 28, 2022
1 parent 9cdf337 commit c40498b
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 @@ -9,7 +9,7 @@ gem 'pg'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'jquery-datatables-rails'
gem 'uglifier', '>= 1.3.0'
gem 'terser'
gem 'sass-rails', '~> 5.0.4'
gem 'haml', '~> 4.0.4'
gem 'bootstrap-sass', '~> 3.3.6'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,14 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
terser (1.1.8)
execjs (>= 0.3.0, < 3)
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.5)
timecop (0.8.1)
tzinfo (1.2.9)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
warden (1.2.9)
rack (>= 2.0.9)
web-console (3.7.0)
Expand Down Expand Up @@ -457,8 +457,8 @@ DEPENDENCIES
simple_form (~> 5.0.3)
spring
spring-commands-rspec
terser
timecop
uglifier (>= 1.3.0)
web-console (~> 3.7)
webdrivers
zeroclipboard-rails
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['RAILS_SERVE_STATIC_FILES'].present?

# 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 c40498b

Please sign in to comment.