dioxus/examples/tailwind/Dioxus.toml
Steven Pecht bdfb3b6285
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
2023-08-12 08:34:42 -05:00

46 lines
725 B
TOML

[application]
# App (Project) Name
name = "Tailwind CSS + Dioxus"
# Dioxus App Default Platform
# desktop, web, mobile, ssr
default_platform = "web"
# `build` & `serve` dist path
out_dir = "dist"
# resource (public) file folder
asset_dir = "public"
[web.app]
# HTML title tag content
title = "dioxus | ⛺"
[web.watcher]
# when watcher trigger, regenerate the `index.html`
reload_html = true
# which files or dirs will be watcher monitoring
watch_path = ["src", "public"]
# include `assets` in web platform
[web.resource]
# CSS style file
style = ["/tailwind.css"]
# Javascript code file
script = []
[web.resource.dev]
# serve: [dev-server] only
# CSS style file
style = []
# Javascript code file
script = []