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
This commit is contained in:
Steven Pecht authored and GitHub committed 2023-08-12 08:34:42 -05:00
1 parent c95f70f55a
commit bdfb3b6285
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ watch_path = ["src", "public"]
[web.resource]
# CSS style file
style = ["tailwind.css"]
style = ["/tailwind.css"]
# Javascript code file
script = []
+1 -1
View File
@@ -81,7 +81,7 @@ watch_path = ["src", "public"]
[web.resource]
# CSS style file
style = ["tailwind.css"]
style = ["/tailwind.css"]
# Javascript code file
script = []