Skip to content

Commit 65dd6c5

Browse files
committed
doc: update README with updated gemfile instructions
because v3.3.1 pins tailwindcss-ruby to v3 [skip ci]
1 parent e57f34a commit 65dd6c5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@ This gem will help with some of the mechanics of the upgrade, however.
7171

7272
Keep in mind that you don't _need_ to upgrade. You can stay on Tailwind v3 for the foreseeable future if you prefer not to migrate now, or if your migration runs into problems.
7373

74-
Just make sure you're pinning the version of **both** `tailwindcss-rails` and `tailwindcss-ruby`:
74+
Just make sure you're either pinned to v3.3.1 of this gem:
75+
76+
``` ruby
77+
# Gemfile
78+
gem "tailwindcss-rails", "3.3.1" # which transitively pins tailwindcss-ruby to v3
79+
```
80+
81+
or if you're on an earlier version of this gem, make sure you're pinning the version of **both** `tailwindcss-rails` and `tailwindcss-ruby`:
7582

7683
``` ruby
7784
# Gemfile
@@ -86,7 +93,7 @@ First, update to `tailwindcss-rails` v4.0.0 or higher. This will also ensure you
8693

8794
``` html
8895
# Gemfile
89-
gem "tailwindcss-rails", "~> 4.0"
96+
gem "tailwindcss-rails", "~> 4.0" # which transitively pins tailwindcss-ruby to v4
9097
```
9198

9299
Then, run the `tailwindcss:upgrade` task. Among other things, this will try to run the official Tailwind upgrade utility. It requires `npx` in order to run, but it's a one-time operation and is *highly recommended* for a successful upgrade.

0 commit comments

Comments
 (0)