From 7615def3d14f2a79980788b372b3f2e34e5f175b Mon Sep 17 00:00:00 2001 From: xfy Date: Mon, 29 Jun 2026 09:56:07 +0800 Subject: [PATCH] fix: add required [web.resource.dev] for dioxus 0.7.9 dioxus-cli 0.7.9 requires a `dev` sub-table under [web.resource]. Added [web.resource.dev] with the same style/script arrays as the production [web.resource] section. --- Dioxus.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dioxus.toml b/Dioxus.toml index 082d2e2..b4bdecb 100644 --- a/Dioxus.toml +++ b/Dioxus.toml @@ -12,3 +12,7 @@ watch_path = ["src", "Cargo.toml"] [web.resource] style = ["/style.css", "/highlight.css", "/tiptap/editor.css", "/lightbox/lightbox.css", "/yggdrasil-core/yggdrasil-core.css"] script = ["/tiptap/editor.js", "/lightbox/lightbox.js", "/yggdrasil-core/yggdrasil-core.js"] + +[web.resource.dev] +style = ["/style.css", "/highlight.css", "/tiptap/editor.css", "/lightbox/lightbox.css", "/yggdrasil-core/yggdrasil-core.css"] +script = ["/tiptap/editor.js", "/lightbox/lightbox.js", "/yggdrasil-core/yggdrasil-core.js"]