Skip to content

Commit

Permalink
Fix paths in README.md and remove mention of js-based config
Browse files Browse the repository at this point in the history
  • Loading branch information
aptinio committed Jan 27, 2025
1 parent c4a1571 commit c5fa532
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ config :tailwind,
version: "4.0.0",
default: [
args: ~w(
--input=css/app.css
--output=../priv/static/assets/app.css
--input=assets/css/app.css
--output=priv/static/assets/app.css
),
cd: Path.expand("..", __DIR__)
]
Expand Down Expand Up @@ -112,20 +112,19 @@ alias for deployments (with the `--minify` option):
"assets.deploy": ["tailwind default --minify", ..., "phx.digest"]
```

Now let's change `config/config.exs` to tell `tailwind` to use
configuration in `assets/tailwind.config.js` for building our css
bundle into `priv/static/assets`. We'll also give it our `assets/css/app.css`
as our css entry point:
Now let's change `config/config.exs` to tell `tailwind`
to build our css bundle into `priv/static/assets`.
We'll also give it our `assets/css/app.css` as our css entry point:

```elixir
config :tailwind,
version: "4.0.0",
default: [
args: ~w(
--input=css/app.css
--output=../priv/static/assets/app.css
--input=assets/css/app.css
--output=priv/static/assets/app.css
),
cd: Path.expand("../assets", __DIR__)
cd: Path.expand("..", __DIR__)
]
```

Expand All @@ -140,7 +139,7 @@ config :tailwind,
version: "4.0.0",
default: [
args: ...,
cd: Path.expand("../apps/<folder_ending_with_web>/assets", __DIR__)
cd: Path.expand("../apps/<folder_ending_with_web>", __DIR__)
]
```

Expand Down

0 comments on commit c5fa532

Please sign in to comment.