-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tailwindcss v0.4 support #417
Comments
Are you interested in making a PR? |
I'd recommend using new version of tailwindcss binary using binary download feature of cargo-leptos.
Retry whatever command you were using with |
I am still get an error when compiling the Leptos application on Windows 11. I have made the recommended changes to the style/tailwind.css file and run the cargo leptos serve command as follows:
...But if I manually download tailwindcss-windows-x64.exe, v4.0.0 from tailwindlabs
I removed manually installed tailwindcss and compile the Leptos code again. Now compiler downloads and installs tailwindcss-v4.0.0 as should be.
So, the suggested fix works also in Windows 11 OK. |
I have {
"devDependencies": {
"@tailwindcss/cli": "^4.0.0",
"tailwindcss": "^4.0.0"
}
} In my Dockerfile, it was previously enough to do Shouldn't cargo-leptos install packages that are necessary for tailwind to work? |
Yes, you are right, cargo-leptos installs the tailwindcss binary if it is not present on the system. In my case, I already had an old version of tailwindcss installed. At first I didn't notice it, but when I removed the old tailwindcss version and recompiled the application, everything went by the book. Cargo-leptos does the job correctly. In that Alpine case, you had to install manually taillwindcss. I have done same observation, that cargo-leptos may install wrong binary version of the tailwindcss in the Alpine Docker container. Please see the issue #426. |
Cargo leptos use
--config
option and provided config file to build tailwindcss. In v0.4 there is no need to use config file, anything can be configured in css. It would be useful if we can exclude config file when building tailwindcss.The text was updated successfully, but these errors were encountered: