mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-21 01:53:15 +00:00
bdfb3b6285
* 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
46 lines
725 B
TOML
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 = []
|