-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Tailwind Support for CLI #1192
Comments
I think it might be better to have commands that are run whenever Could also be a good solution to 1458 |
+1 I don't think the configuration should live in the html file. A plugin system would allow us to build different composable pieces that hook into different parts of the build process. Tailwind integration could be a plugin |
Some additional context to keep in mind is Tailwind CLI will be moving to Oxide (https://github.com/tailwindlabs/tailwindcss/tree/master/oxide) in a few minor versions (3.5 - 3.7) which isn't far away. I would also love it if we didn't have a "tailwind.css" in our public folder that we had to commit, I'm aware we can just ignore it with |
You don't need to have it in your public folder, but the dist folder should have everything required for the application to run, including the CSS files |
For my current project I am using a use std::process::Command;
fn main() {
Command::new("tailwindcss")
.args(&["-i", "./src/tailwind.css", "-o", "./assets/tailwind.css"])
.status()
.unwrap();
} I include the built file with manganis in a designated // include tailwind css asset
pub const _TAILWINDCSS: &str = manganis::mg!(file("./assets/tailwind.css")); This automatically includes the built css into my project, so everything There might be a way to integrate this |
I believe this issue is blocked upstream for Tailwind v4, where they don't yet have a standalone CLI. Only Tailwind v3 is compatible right now, unfortunately. |
Specific Demand
For DX purposes, it'd be great if we can have Tailwind to auto-generate CSS files through the CLI similar to how trunk approaches this:
Implement Suggestion
N/A
The text was updated successfully, but these errors were encountered: