show off the new asset system in the examples

This commit is contained in:
Evan Almloff committed 2023-12-17 11:45:27 -06:00
1 parent a647ce2f36
commit d627153ccc
8 files changed
+14 -9

No files matched your search

+3 -5
View File
@@ -2,13 +2,11 @@
use dioxus::prelude::*;
const _STYLE: &str = mg!(file("./public/tailwind.css"));
fn main() {
#[cfg(not(target_arch = "wasm32"))]
dioxus_desktop::launch_cfg(
app,
dioxus_desktop::Config::new()
.with_custom_head(r#"<link rel="stylesheet" href="public/tailwind.css">"#.to_string()),
);
dioxus_desktop::launch(app);
#[cfg(target_arch = "wasm32")]
dioxus_web::launch(app);
}