feat: add default_platform config
This commit is contained in:
1 parent
1835a25e03
commit
59ebb9ec11
5 files changed
+39
-18
No files matched your search
@@ -22,7 +22,15 @@ impl Build {
|
||||
crate_config.as_example(self.build.example.unwrap());
|
||||
}
|
||||
|
||||
match self.build.platform.as_str() {
|
||||
let platform = self.build.platform.unwrap_or_else(|| {
|
||||
crate_config
|
||||
.dioxus_config
|
||||
.application
|
||||
.default_platform
|
||||
.clone()
|
||||
});
|
||||
|
||||
match platform.as_str() {
|
||||
"web" => {
|
||||
crate::builder::build(&crate_config)?;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user