Hi, and thanks for the Leptos - learning it and enjoying the rust full-stack idea!
So i went with start-axum-workspace template, added tailwind-input-file = "style/tailwind.css" to workspace Cargo.toml and then spent some debugging and wondering why no styles from app/src/lib.rs are in the output css, when main.scss and tailwind.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 in module.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:
change generated version to ./*/src/**/*.rs
try to detect that we're in workspace and add ./app/src/**/*.rs if that's the case
something else?
I can try and add PR, but this needs feedback with decision, and maybe some guidance.
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.