mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
propagate features
to dioxus serve
#122 fixed `--features` for `dioxus build`, this PR adds the same for `dioxus serve`
This commit is contained in:
parent
d5bda3c753
commit
a590a07b3f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue