You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-12
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,12 @@ First, update to `tailwindcss-rails` v4.0.0 or higher. This will also ensure you
104
104
gem "tailwindcss-rails", "~> 4.0" # which transitively pins tailwindcss-ruby to v4
105
105
```
106
106
107
+
**Update** references to any existing css files imported in `application.tailwind.css`
108
+
```diff
109
+
-@import "pagy.css";
110
+
+@import "../stylesheets/pagy.css";
111
+
```
112
+
107
113
If you want to migrate CSS class names for v4 (this is an optional step!), jump to [Updating CSS class names for v4](#updating-css-class-names-for-v4) before continuing.
108
114
109
115
Then, run `bin/rails tailwindcss:upgrade`. 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.
@@ -221,17 +227,6 @@ With some additional manual work the upstream upgrade tool will update your appl
221
227
222
228
(Just add an additional `.` to all the paths referenced)
223
229
224
-
**Update** references to any existing css files imported in the `app/assets/stylesheets/application.tailwind.css`
225
-
```diff
226
-
@import "tailwindcss/components";
227
-
@import "tailwindcss/utilities";
228
-
229
-
-@import "pagy.css";
230
-
-@import "new_case.css";
231
-
+@import "../stylesheets/pagy.css";
232
-
+@import "../stylesheets/new_case.css";
233
-
```
234
-
235
230
**Run** the upstream upgrader as instructed above.
236
231
237
232
Then, once you've run that successfully, clean up:
@@ -243,7 +238,6 @@ Then, once you've run that successfully, clean up:
243
238
```
244
239
- **Revert** the changes to `config/tailwind.config.js` so that paths are once again relative to the application root.
0 commit comments