propagate features to dioxus serve

#122 fixed `--features` for `dioxus build`, this PR adds the same for `dioxus serve`
This commit is contained in:
Anatol Ulrich 2023-04-07 17:19:31 +02:00 committed by GitHub
parent d5bda3c753
commit a590a07b3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,10 @@ impl Serve {
crate_config.set_profile(self.serve.profile.unwrap()); crate_config.set_profile(self.serve.profile.unwrap());
} }
if self.serve.features.is_some() {
crate_config.set_features(self.serve.features.unwrap());
}
let platform = self.serve.platform.unwrap_or_else(|| { let platform = self.serve.platform.unwrap_or_else(|| {
crate_config crate_config
.dioxus_config .dioxus_config