Skip to content

Commit 99d7910

Browse files
committed
Update docs, closes #116
1 parent dec852e commit 99d7910

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config :tailwind, version: "4.0.9"
4343
```
4444

4545
Note that `:tailwind` 0.3+ assumes Tailwind v4+ by default. It still supports Tailwind v3, but some configuration options when setting up a new
46-
project might be different. If you use Tailwind v3, also have a look at [the README in the 0.2 branch](https://github.com/phoenixframework/tailwind/blob/v0.2/README.md).
46+
project might be different. If you use Tailwind v3, also have a look at [the README in the 0.2 branch](https://github.com/phoenixframework/tailwind/blob/v0.2/README.md).
4747

4848
Now you can install Tailwind by running:
4949

@@ -175,7 +175,7 @@ when we configured `tailwind` in `config/config.exs`. See
175175
For a typical Phoenix application, updating from Tailwind v3 to v4 requires the following steps:
176176

177177
1. Update the `:tailwind` library to version 0.3+
178-
178+
179179
```diff
180180
defp deps do
181181
[
@@ -196,7 +196,6 @@ For a typical Phoenix application, updating from Tailwind v3 to v4 requires the
196196
- --config=tailwind.config.js
197197
- --input=css/app.css
198198
- --output=../priv/static/assets/app.css
199-
+ --config=assets/tailwind.config.js
200199
+ --input=assets/css/app.css
201200
+ --output=priv/static/assets/app.css
202201
),

lib/mix/tasks/tailwind.ex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ defmodule Mix.Tasks.Tailwind do
88
99
Example:
1010
11-
$ mix tailwind default --config=tailwind.config.js \
12-
--input=css/app.css \
11+
$ mix tailwind default --minify --input=css/app.css \
1312
--output=../priv/static/assets/app.css \
14-
--minify
1513
16-
If tailwind is not installed, it is automatically downloaded.
14+
If Tailwind is not installed, it is automatically downloaded.
1715
Note the arguments given to this task will be appended
1816
to any configured arguments.
1917
18+
If using Tailwind v3, you'd also pass the `--config=tailwind.config.js`
19+
flag pointing to your Tailwind configuration. In Tailwind v4, the
20+
configuration happens with the input CSS file.
21+
2022
## Options
2123
2224
* `--runtime-config` - load the runtime configuration

0 commit comments

Comments
 (0)