From bdfb3b628578aea3290b43af018589a66e62e98f Mon Sep 17 00:00:00 2001 From: Steven Pecht Date: Sat, 12 Aug 2023 23:34:42 +1000 Subject: [PATCH] Update tailwind examples to work with multi-page apps (#1339) * Update tailwind example to work with multi-page apps Use the absolute path to `tailwind.css` so the example works with multi-page apps. Without this change, the style disappears on page reload. * Update tailwind Dioxus.toml to use absolute path for tailwind.css --- examples/tailwind/Dioxus.toml | 2 +- examples/tailwind/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tailwind/Dioxus.toml b/examples/tailwind/Dioxus.toml index 67a63e686..b440d6a69 100644 --- a/examples/tailwind/Dioxus.toml +++ b/examples/tailwind/Dioxus.toml @@ -30,7 +30,7 @@ watch_path = ["src", "public"] [web.resource] # CSS style file -style = ["tailwind.css"] +style = ["/tailwind.css"] # Javascript code file script = [] diff --git a/examples/tailwind/README.md b/examples/tailwind/README.md index f2a08eba9..552ab402f 100644 --- a/examples/tailwind/README.md +++ b/examples/tailwind/README.md @@ -81,7 +81,7 @@ watch_path = ["src", "public"] [web.resource] # CSS style file -style = ["tailwind.css"] +style = ["/tailwind.css"] # Javascript code file script = []