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
+19-2
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
<!-- toc -->
8
8
9
9
-[Installation](#installation)
10
+
*[Choosing a specific version of `tailwindcss`](#choosing-a-specific-version-of-tailwindcss)
10
11
*[Using a local installation of `tailwindcss`](#using-a-local-installation-of-tailwindcss)
11
12
-[Developing with Tailwindcss](#developing-with-tailwindcss)
12
13
*[Configuration and commands](#configuration-and-commands)
@@ -17,7 +18,7 @@
17
18
*[Using with PostCSS](#using-with-postcss)
18
19
*[Custom inputs or outputs](#custom-inputs-or-outputs)
19
20
-[Troubleshooting](#troubleshooting)
20
-
*[Lost keystrokes or hanging when using `ruby/debug` with the Puma plugin](#lost-keystrokes-or-hanging-when-using-rubydebug-with-the-puma-plugin)
21
+
*[Lost keystrokes or hanging when using terminal-based debugging tools (e.g. IRB, Pry, `ruby/debug`...etc.) with the Puma plugin](#lost-keystrokes-or-hanging-when-using-terminal-based-debugging-tools-eg-irb-pry-rubydebugetc-with-the-puma-plugin)
21
22
*[Running in a docker container exits prematurely](#running-in-a-docker-container-exits-prematurely)
22
23
*[Conflict with sassc-rails](#conflict-with-sassc-rails)
23
24
*[Class names must be spelled out](#class-names-must-be-spelled-out)
@@ -35,7 +36,23 @@ With Rails 7 you can generate a new application preconfigured with Tailwind by u
35
36
1. Run `./bin/bundle add tailwindcss-rails`
36
37
2. Run `./bin/rails tailwindcss:install`
37
38
38
-
This gem depends on the `tailwindcss-ruby` gem to install a working tailwind executable. You can also use a local (npm-based) installation if you prefer, please go to https://github.com/flavorjones/tailwindcss-ruby for more information.
39
+
This gem depends on the `tailwindcss-ruby` gem to install a working tailwind executable.
40
+
41
+
42
+
### Choosing a specific version of `tailwindcss`
43
+
44
+
The `tailwindcss-ruby` gem is declared as a floating dependency of this gem, so by default you will get the most recent stable version. However, you can select a specific version of tailwind by pinning that gem to the analogous version in your application's `Gemfile`. For example,
45
+
46
+
```ruby
47
+
gem "tailwindcss-rails"
48
+
49
+
# pin to tailwindcss version 3.4.13
50
+
gem "tailwindcss-ruby", "3.4.13"
51
+
```
52
+
53
+
### Using a local installation of `tailwindcss`
54
+
55
+
You can also use a local (npm-based) installation if you prefer, please go to https://github.com/flavorjones/tailwindcss-ruby for more information.
0 commit comments