Skip to content

Commit cb957b3

Browse files
committed
Update readme
1 parent 35ac2a6 commit cb957b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,14 @@ If you have Rails Engines in your application that use Tailwind CSS, they will b
406406
407407
- The engine must have `tailwindcss-rails` as gem dependency.
408408
- The engine must have a `app/assets/tailwind/<engine_name>/application.css` file or your application must have overridden file in the same location of your application root.
409+
- The engine must register itself in Tailwindcss Rails:
410+
```ruby
411+
initializer 'your_engine.tailwindcss' do |app|
412+
ActiveSupport.on_load(:tailwindcss_rails) do
413+
config.tailwindcss_rails.engines << Your::Engine.engine_name
414+
end
415+
end
416+
```
409417
410418
## Troubleshooting
411419

0 commit comments

Comments
 (0)