Open tonky opened 6 months ago
Just came across this, thanks for flagging this haha. I felt like I would spend hours thinking what I did wrong
The tailwind cli isn't autogenerated, it's a static file in the start-axum-workspace template. So I'll move this issue there. A PR to fix this would be most welcome
Hi, and thanks for the Leptos - learning it and enjoying the rust full-stack idea!
So i went with
start-axum-workspace
template, addedtailwind-input-file = "style/tailwind.css"
to workspace Cargo.toml and then spent some debugging and wondering why no styles fromapp/src/lib.rs
are in the output css, whenmain.scss
andtailwind.css
are clearly being processed.I don't have much experience with Tailwind and its configuration file, which certainly added to my confusion.
Took me a while to realize that a
./src/**/*.rs
path inmodule.exports.content.files
in 'tailwind.config.js' won't actually process any Rust files, since we're in a workspace without./src
dir. After changing it to./app/src/**/*.rs
- everything works as intended now.So the question is - should this be fixed, and if so - what would the fix be:
./*/src/**/*.rs
./app/src/**/*.rs
if that's the caseI can try and add PR, but this needs feedback with decision, and maybe some guidance.