fix: use a different temp path to not confuse image opt (#3620)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-01-21 18:33:43 -08:00
1 parent 13dcd80fbf
commit 08f2180bbd
3 files changed
+25 -18

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@@ -3,6 +3,7 @@
use dioxus::prelude::*;
const MONACO_FOLDER: Asset = asset!("/monaco-editor-0.52.2/package/min/vs");
const SOME_IMAGE: Asset = asset!("/images/toasts.png", ImageAssetOptions::new().with_avif());
fn main() {
dioxus::launch(App);
@@ -30,5 +31,8 @@ fn App() -> Element {
src: "{MONACO_FOLDER}/loader.js",
"onload": script
}
img {
src: "{SOME_IMAGE}"
}
}
}