diff --git a/README.md b/README.md index c8e67e3b..61b4e02a 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,12 @@ First, update to `tailwindcss-rails` v4.0.0 or higher. This will also ensure you gem "tailwindcss-rails", "~> 4.0" # which transitively pins tailwindcss-ruby to v4 ``` +**Update** references to any existing css files imported in `application.tailwind.css` +```diff +-@import "pagy.css"; ++@import "../stylesheets/pagy.css"; +``` + 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. 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. @@ -232,7 +238,6 @@ Then, once you've run that successfully, clean up: ``` - **Revert** the changes to `config/tailwind.config.js` so that paths are once again relative to the application root. - ## Developing with Tailwindcss ### Configuration and commands