Tools config section missing on trunkrs.dev
Trunk was launching an old version of Tailwind (3.3.5, I wanted 4.0.6), so I ended up diving into the source code and found a not-exactly-documented [tools] section. [tools] and tailwindcss = "4.0.6" does the trick, and there are a few more tools with version defaults as well as some other stuff.
It would be nice to add all of these to the official website's Config page.
Also, the most recent version of Tailwind seems to be a breaking change compared to 3.x and using the default settings while expecting 4.x causes errors. Updating it would be a breaking change too, but it might be worth it to clarify the current default version (as well as for the other tools) to avoid confusion & instruct how to specify the preferred version via the config.
If you want use tailwind-extra which provides daisyui.
<html>
<head>
<link data-trunk rel="tailwind-css-extra" href="styles.css" />
</head>
</html>
You can select the version v2.0.0 or higher, which provides daisyui 5.0 and tailwindcss 4.0.
The confusing is here you select in the tools tailwindcss with version you can find here https://github.com/dobicinaitis/tailwind-cli-extra
#Trunk.toml
[tools]
tailwindcss = "2.0.4"
let's address this after merging #987
hello, have you had the chance to advance on this ? thanks !
A documentation for the tools section would indeed be nice.
I had a similar issue using Bulma (a css library) which failed to build using the default version of dart-sass due to a sass breaking change. I found the solution by reading the code and finding the tools env vars (then realized that it could be use in the config file). And from what I saw (I didn't check) it should also be usable as a CLI parameter (also undocumented) ?
🙏