Skip to content
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

Cannot load a stylesheet using with_custom_head in dioxus 0.6 #3349

Open
photino opened this issue Dec 13, 2024 · 0 comments
Open

Cannot load a stylesheet using with_custom_head in dioxus 0.6 #3349

photino opened this issue Dec 13, 2024 · 0 comments

Comments

@photino
Copy link
Contributor

photino commented Dec 13, 2024

Problem

In dioxus 0.5, we can use the method with_custom_head to load a stylesheet like:

<link rel="stylesheet" href="public/bulma.min.css" type="text/css">

But it does not work in dioxus 0.6. Any ideas on how to load a local stylesheet using with_custom_head (not using asset!)?

If we use asset!, it seems that it can not run with cargo run.

Steps To Reproduce

Steps to reproduce the behavior:

  • Call the with_custom_head method to load a stylesheet in a local dir.

Expected behavior

The with_custom_head method should work as dioxus 0.5.

Screenshots

Environment:

  • Dioxus version: 0.6
  • Rust version: 1.83
  • OS info: Windows
  • App platform: desktop

Questionnaire

I'm interested in fixing this myself but don't know where to start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant