Skip to content

Commit 480b9b6

Browse files
committed
suppport to tailwind cli postcss, contributing tips
1 parent c9b605d commit 480b9b6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ If you are running `rails tailwindcss:watch` as a process in a Docker container,
4343
If you are running `rails tailwindcss:watch` on a system that doesn't fully support file system events, pass a `poll` argument to the task to instruct tailwindcss to instead use polling: `rails tailwindcss:watch[poll]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
4444

4545

46-
### Use postcss
46+
### Using postcss
4747

48-
In the case you want to use postcss plugins you will need to pass postcss option like `rails tailwindcss:build[postcss]` or `rails tailwindcss:watch[postcss]`.
48+
The tailwind cli supports passing a postcss.config.js file. This might be necessary if you want to use postcss plugins (e.g. postcss-css-variables). In this case you can pass postcss as a task option `rails tailwindcss:build[postcss]` or `rails tailwindcss:watch[postcss]`.
4949

5050
### Debugging with unminified assets
5151

@@ -146,6 +146,14 @@ The inline version also works:
146146
<section class="bg-[url('image.svg')]">Has the image as it's background</section>
147147
```
148148

149+
### Contributing
150+
151+
If you want to fork this repo and test this gem locally in your projects, you will need to run `rake package` (the process this gem uses to generate platform-related gem versions, e.g. x86_64-linux, x86_64-darwin, etc). You can now point the local version of the gem in your Gemfile:
152+
153+
```ruby
154+
gem 'tailwindcss-rails', '2.0.18', path: '/path/to/your/local/gem'
155+
```
156+
149157
## License
150158

151159
Tailwind for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)