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:
1 parent
8a2922c663
commit
ba4389567d
13 files changed
+95
-36
No files matched your search
@@ -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",
|
||||
/// }
|
||||
/// }
|
||||
|
||||
@@ -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"),
|
||||
/// }
|
||||
/// }
|
||||
/// }
|
||||
|
||||
Reference in new issue
Block a user