Mix tailwind - 4.0.0-beta.1 support

Got it working:

This is a working config:

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

diff:

As you can see, the difference is to not cd into assets. Tailwind 4 does source detection differently, but you can still configure it: Tailwind CSS v4.0 Beta - Tailwind CSS, so the old configuration can probably be kept with correct source detection, but I didn’t bother with that.

10 Likes