From 0bb4443c9fce6dc6ad6c536e67f3980d38c10152 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 27 Jan 2025 08:08:44 -0500 Subject: [PATCH] Properly invoke the initializer to have Propshaft ignore tailwind Fixes #477, originally #470 was incompletely fixed. --- lib/tailwindcss/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tailwindcss/engine.rb b/lib/tailwindcss/engine.rb index 0c020bbc..7b88c5f1 100644 --- a/lib/tailwindcss/engine.rb +++ b/lib/tailwindcss/engine.rb @@ -6,7 +6,7 @@ class Engine < ::Rails::Engine Rails.application.config.generators.stylesheets = false end - initializer "tailwindcss.exclude_asset_path", after: "propshaft.append_assets_path" do + initializer "tailwindcss.exclude_asset_path", before: "propshaft.append_assets_path" do if Rails.application.config.assets.excluded_paths # the app may not be using Propshaft Rails.application.config.assets.excluded_paths << Rails.root.join("app/assets/tailwind") end