Skip to content

Commit 0bb4443

Browse files
committed
Properly invoke the initializer to have Propshaft ignore tailwind
Fixes #477, originally #470 was incompletely fixed.
1 parent a180a29 commit 0bb4443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tailwindcss/engine.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Engine < ::Rails::Engine
66
Rails.application.config.generators.stylesheets = false
77
end
88

9-
initializer "tailwindcss.exclude_asset_path", after: "propshaft.append_assets_path" do
9+
initializer "tailwindcss.exclude_asset_path", before: "propshaft.append_assets_path" do
1010
if Rails.application.config.assets.excluded_paths # the app may not be using Propshaft
1111
Rails.application.config.assets.excluded_paths << Rails.root.join("app/assets/tailwind")
1212
end

0 commit comments

Comments
 (0)