propagate features to dioxus serve
#122 fixed `--features` for `dioxus build`, this PR adds the same for `dioxus serve`
This commit is contained in:
1 parent
d5bda3c753
commit
a590a07b3f
1 file changed
+4
@@ -30,6 +30,10 @@ impl Serve {
|
||||
if self.serve.profile.is_some() {
|
||||
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(|| {
|
||||
crate_config
|
||||
|
||||
Reference in new issue
Block a user