From 4b12764f453897fb9adb6a4bd34a7afc08b49d1d Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 3 Apr 2024 14:57:45 -0700 Subject: [PATCH] [Housekeeping] Upgraded Tailwind to 3.4.3 (#163) * Upgraded Tailwind * Enabled asset compression in prod --- config/config.exs | 2 +- .../components/custom_components/tab_components.ex | 2 +- lib/pinchflat_web/endpoint.ex | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.exs b/config/config.exs index 8e3cd83..4e7a854 100644 --- a/config/config.exs +++ b/config/config.exs @@ -85,7 +85,7 @@ config :esbuild, # Configure tailwind (the version is required) config :tailwind, - version: "3.3.2", + version: "3.4.3", default: [ args: ~w( --config=tailwind.config.js diff --git a/lib/pinchflat_web/components/custom_components/tab_components.ex b/lib/pinchflat_web/components/custom_components/tab_components.ex index 160d073..f8c5a71 100644 --- a/lib/pinchflat_web/components/custom_components/tab_components.ex +++ b/lib/pinchflat_web/components/custom_components/tab_components.ex @@ -34,7 +34,7 @@ defmodule PinchflatWeb.CustomComponents.TabComponents do <%= render_slot(@tab_append) %> -
+
<%= render_slot(tab) %>
diff --git a/lib/pinchflat_web/endpoint.ex b/lib/pinchflat_web/endpoint.ex index b6ab016..bcf53c0 100644 --- a/lib/pinchflat_web/endpoint.ex +++ b/lib/pinchflat_web/endpoint.ex @@ -20,7 +20,7 @@ defmodule PinchflatWeb.Endpoint do plug Plug.Static, at: "/", from: :pinchflat, - gzip: false, + gzip: Mix.env() == :prod, only: PinchflatWeb.static_paths() # Code reloading can be explicitly enabled under the