diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 14:56:50 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 14:56:50 -0400 |
commit | 6ded4911b8541d23e2748b024d7f87b4a67d958a (patch) | |
tree | 54bc8082d3439ca35792949ff124a850f588ddaa /config/environments | |
parent | 4dfed0a64dffb854210dcbfcbc947891c69f0790 (diff) | |
download | thoughts-6ded4911b8541d23e2748b024d7f87b4a67d958a.tar.gz thoughts-6ded4911b8541d23e2748b024d7f87b4a67d958a.tar.bz2 thoughts-6ded4911b8541d23e2748b024d7f87b4a67d958a.zip |
Changed JS compressor to terser
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/production.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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. |