mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 06:00:21 +00:00
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:
parent
c95f70f55a
commit
bdfb3b6285
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ watch_path = ["src", "public"]
|
||||||
[web.resource]
|
[web.resource]
|
||||||
|
|
||||||
# CSS style file
|
# CSS style file
|
||||||
style = ["tailwind.css"]
|
style = ["/tailwind.css"]
|
||||||
|
|
||||||
# Javascript code file
|
# Javascript code file
|
||||||
script = []
|
script = []
|
||||||
|
|
|
@ -81,7 +81,7 @@ watch_path = ["src", "public"]
|
||||||
[web.resource]
|
[web.resource]
|
||||||
|
|
||||||
# CSS style file
|
# CSS style file
|
||||||
style = ["tailwind.css"]
|
style = ["/tailwind.css"]
|
||||||
|
|
||||||
# Javascript code file
|
# Javascript code file
|
||||||
script = []
|
script = []
|
||||||
|
|
Loading…
Reference in a new issue