From 4b8baa32072cf938b7eaae48c552033b28c51a98 Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Tue, 10 Oct 2023 17:06:23 -0400 Subject: [PATCH] Start using yui-compressor --- Gemfile | 1 + Gemfile.lock | 2 ++ Gemfile.next.lock | 5 ++--- config/environments/production.rb | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 10e11d13..63287011 100644 --- a/Gemfile +++ b/Gemfile @@ -63,6 +63,7 @@ gem "rack-mini-profiler" group :production do gem "newrelic_rpm" + gem "yui-compressor" end group :development, :test do diff --git a/Gemfile.lock b/Gemfile.lock index a348a7e1..8850177b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -437,6 +437,7 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) + yui-compressor (0.12.0) zeitwerk (2.6.12) PLATFORMS @@ -484,6 +485,7 @@ DEPENDENCIES tzinfo-data web-console (>= 3.3.0) webdrivers + yui-compressor RUBY VERSION ruby 3.2.2p53 diff --git a/Gemfile.next.lock b/Gemfile.next.lock index c62d2f18..b508438c 100644 --- a/Gemfile.next.lock +++ b/Gemfile.next.lock @@ -425,8 +425,6 @@ GEM turbolinks-source (5.2.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) unicode-display_width (2.5.0) version_gem (1.1.3) warden (1.2.9) @@ -447,6 +445,7 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) + yui-compressor (0.12.0) zeitwerk (2.6.12) PLATFORMS @@ -492,9 +491,9 @@ DEPENDENCIES standardrb turbolinks (~> 5) tzinfo-data - uglifier (>= 1.3.0) web-console (>= 3.3.0) webdrivers + yui-compressor RUBY VERSION ruby 3.2.2p53 diff --git a/config/environments/production.rb b/config/environments/production.rb index 6820c978..48dc1f11 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -24,6 +24,7 @@ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? # config.assets.css_compressor = :sass + config.assets.css_compressor = :yui # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false