This commit is contained in:
Evan Almloff committed 2022-06-16 13:20:41 -05:00
commit 11d045deeb
11 files changed
+361 -18

No files matched your search

+7 -3
View File
@@ -18,14 +18,18 @@ impl Serve {
let mut crate_config = crate::CrateConfig::new()?;
// change the relase state.
crate_config
.with_release(self.serve.release)
.with_hot_reload(self.serve.hot_reload);
crate_config.with_hot_reload(self.serve.hot_reload);
crate_config.with_release(self.serve.release);
crate_config.with_verbose(self.serve.verbose);
if self.serve.example.is_some() {
crate_config.as_example(self.serve.example.unwrap());
}
if self.serve.profile.is_some() {
crate_config.set_profile(self.serve.profile.unwrap());
}
let platform = self.serve.platform.unwrap_or_else(|| {
crate_config
.dioxus_config