about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-30 14:56:50 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-30 14:56:50 -0400
commit6ded4911b8541d23e2748b024d7f87b4a67d958a (patch)
tree54bc8082d3439ca35792949ff124a850f588ddaa
parent4dfed0a64dffb854210dcbfcbc947891c69f0790 (diff)
downloadthoughts-6ded4911b8541d23e2748b024d7f87b4a67d958a.tar.gz
thoughts-6ded4911b8541d23e2748b024d7f87b4a67d958a.tar.bz2
thoughts-6ded4911b8541d23e2748b024d7f87b4a67d958a.zip
Changed JS compressor to terser
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock6
-rw-r--r--config/environments/production.rb2
3 files changed, 5 insertions, 5 deletions
diff --git a/Gemfile b/Gemfile index 2aec2a4..993076b 100644 --- a/Gemfile +++ b/Gemfile
@@ -16,7 +16,7 @@ gem 'webrick', '~> 1.7'
16# Use SCSS for stylesheets 16# Use SCSS for stylesheets
17gem 'sassc-rails' 17gem 'sassc-rails'
18# Use Uglifier as compressor for JavaScript assets 18# Use Uglifier as compressor for JavaScript assets
19gem 'uglifier', '>= 1.3.0' 19gem 'terser', '~> 1.1.19'
20# See https://github.com/rails/execjs#readme for more supported runtimes 20# See https://github.com/rails/execjs#readme for more supported runtimes
21gem 'mini_racer' 21gem 'mini_racer'
22 22
diff --git a/Gemfile.lock b/Gemfile.lock index d9f4ff2..da73401 100644 --- a/Gemfile.lock +++ b/Gemfile.lock
@@ -370,6 +370,8 @@ GEM
370 temple (0.10.3) 370 temple (0.10.3)
371 terrapin (0.6.0) 371 terrapin (0.6.0)
372 climate_control (>= 0.0.3, < 1.0) 372 climate_control (>= 0.0.3, < 1.0)
373 terser (1.1.19)
374 execjs (>= 0.3.0, < 3)
373 thor (1.3.0) 375 thor (1.3.0)
374 tilt (2.3.0) 376 tilt (2.3.0)
375 timeout (0.4.0) 377 timeout (0.4.0)
@@ -378,8 +380,6 @@ GEM
378 turbolinks-source (5.2.0) 380 turbolinks-source (5.2.0)
379 tzinfo (2.0.6) 381 tzinfo (2.0.6)
380 concurrent-ruby (~> 1.0) 382 concurrent-ruby (~> 1.0)
381 uglifier (4.2.0)
382 execjs (>= 0.3.0, < 3)
383 victor (0.3.4) 383 victor (0.3.4)
384 warden (1.2.9) 384 warden (1.2.9)
385 rack (>= 2.0.9) 385 rack (>= 2.0.9)
@@ -443,9 +443,9 @@ DEPENDENCIES
443 spring-watcher-listen (~> 2.0.0) 443 spring-watcher-listen (~> 2.0.0)
444 sprockets (= 3.7.2) 444 sprockets (= 3.7.2)
445 sqlite3 445 sqlite3
446 terser (~> 1.1.19)
446 turbolinks (~> 5) 447 turbolinks (~> 5)
447 tzinfo-data 448 tzinfo-data
448 uglifier (>= 1.3.0)
449 web-console (>= 3.3.0) 449 web-console (>= 3.3.0)
450 webrick (~> 1.7) 450 webrick (~> 1.7)
451 whenever (~> 1.0.0) 451 whenever (~> 1.0.0)
diff --git a/config/environments/production.rb b/config/environments/production.rb index ccd3012..8f8be04 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb
@@ -24,7 +24,7 @@ Rails.application.configure do
24 config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? 24 config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
25 25
26 # Compress JavaScripts and CSS. 26 # Compress JavaScripts and CSS.
27 config.assets.js_compressor = Uglifier.new(harmony: true) 27 config.assets.js_compressor = :terser
28 # config.assets.css_compressor = :sass 28 # config.assets.css_compressor = :sass
29 29
30 # Do not fallback to assets pipeline if a precompiled asset is missed. 30 # Do not fallback to assets pipeline if a precompiled asset is missed.