Deprecate relative asset paths, better warnings for asset!() (#3214)

* Deprecate relative asset paths

* fix paths, better warnings in asset parser
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-11-13 19:52:23 -05:00
1 parent 8a2922c663
commit ba4389567d
13 files changed
+95 -36

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ impl LinkProps {
/// // You can use the meta component to render a meta tag into the head of the page
/// // This meta tag will redirect the user to the dioxuslabs homepage in 10 seconds
/// document::Link {
/// href: asset!("./assets/style.css"),
/// href: asset!("/assets/style.css"),
/// rel: "stylesheet",
/// }
/// }
+1 -1
View File
@@ -74,7 +74,7 @@ impl ScriptProps {
/// rsx! {
/// // You can use the Script component to render a script tag into the head of the page
/// document::Script {
/// src: asset!("./assets/script.js"),
/// src: asset!("/assets/script.js"),
/// }
/// }
/// }