refactor: remove the deprecated web resource configuration and use the script component #81

Merged
matous-volf merged 1 commits from refactor/web-resource-scripts into main 2025-01-02 09:20:02 +00:00
2 changed files with 1 additions and 15 deletions

View File

@ -25,18 +25,3 @@ reload_html = true
# which files or dirs will be watcher monitoring # which files or dirs will be watcher monitoring
watch_path = ["src", "assets"] watch_path = ["src", "assets"]
# include `assets` in web platform
[web.resource]
# CSS style file
style = []
# Javascript code file
script = ["https://kit.fontawesome.com/3c1b409f8f.js"]
[web.resource.dev]
# Javascript code file
# serve: [dev-server] only
script = []

View File

@ -39,6 +39,7 @@ pub(crate) fn App() -> Element {
document::Link { rel: "stylesheet", href: FONTS_CSS } document::Link { rel: "stylesheet", href: FONTS_CSS }
document::Link { rel: "stylesheet", href: INPUT_NUMBER_ARROWS_CSS } document::Link { rel: "stylesheet", href: INPUT_NUMBER_ARROWS_CSS }
document::Link { rel: "stylesheet", href: INPUT_RANGE_CSS } document::Link { rel: "stylesheet", href: INPUT_RANGE_CSS }
document::Script { src: "https://kit.fontawesome.com/3c1b409f8f.js" }
div { div {
class: "min-h-screen text-zinc-200 bg-zinc-800 pt-4 pb-36", class: "min-h-screen text-zinc-200 bg-zinc-800 pt-4 pb-36",