Open Anonyfox opened 2 weeks ago
I have the same issue when using it for a web project. I did find a workout, but its more of a hack tbh.: Install Manganis so that it can embed the css for you. This, however, will not work yet. Changing the css will not force a recompile that incorporates the css. So I added an unnamed number variable below. Increasing the number will force a recompile and any changes you made to your css will be picked up.
const _: &str = manganis::mg!(file("./assets/main.css"));
const _: &str = "2";
Note that I get a rust-analyser error for the first line (file not found) but it compiles just fine with dx
...
Also seeing this. The tailwind example doesn't work at all on desktop on the current version (0.5.1) but it does work on master when using
dioxus = { version = "0.5.2", features = ["desktop"], git = "https://github.com/DioxusLabs/dioxus.git" }
So possibly this issue has recently been fixed and we're just waiting for a release?
Same problem here when serving on macOS. This looks like a macOS specific issue, as our project still works fine when building on linux
Problem
Steps To Reproduce
Steps to reproduce the behavior:
dx new
... the CSS from main.css is not loaded at all.
Dioxus.toml
:no difference.
where it clearly adds the
/dist
part twice. the file does exist in the dist folder at the correct location on my disk, no idea whats wrong here. no idea whats wrong. No success with removing that error so far.Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Environment:
desktop
]Questionnaire