fix manganis support for dioxus desktop
This commit is contained in:
1 parent
ef101dd876
commit
3270f7341a
9 files changed
+63
-58
No files matched your search
@@ -4,7 +4,8 @@ use dioxus::prelude::*;
|
||||
static ASSET_PATH: &str = "examples/assets/logo.png";
|
||||
|
||||
#[cfg(feature = "collect-assets")]
|
||||
static ASSET_PATH: &str = manganis::mg!(image("examples/assets/logo.png").format(ImageType::Avif));
|
||||
static ASSET_PATH: &str =
|
||||
manganis::mg!(image("examples/assets/logo.png").format(ImageType::Avif)).path();
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
|
||||
Reference in new issue
Block a user