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

@@ -36,7 +36,7 @@ pub fn App() -> Element {
#[component]
fn Homepage(story: ReadOnlySignal<PreviewState>) -> Element {
rsx! {
document::Link { rel: "stylesheet", href: asset!("./assets/hackernews.css") }
document::Link { rel: "stylesheet", href: asset!("/assets/hackernews.css") }
div { display: "flex", flex_direction: "row", width: "100%",
div {
width: "50%",