mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 22:20:19 +00:00
mark hot-reload flag incompatible with release
This commit is contained in:
parent
16c59b8e0b
commit
91e378fc5e
1 changed files with 3 additions and 1 deletions
|
@ -78,6 +78,7 @@ impl From<ConfigOptsServe> for ConfigOptsBuild {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Deserialize, Parser)]
|
||||
#[command(group = clap::ArgGroup::new("release-incompatible").multiple(true).conflicts_with("release"))]
|
||||
pub struct ConfigOptsServe {
|
||||
/// Port of dev server
|
||||
#[clap(long)]
|
||||
|
@ -116,8 +117,9 @@ pub struct ConfigOptsServe {
|
|||
#[clap(long, value_enum)]
|
||||
pub platform: Option<Platform>,
|
||||
|
||||
/// Build with hot reloading rsx [default: false]
|
||||
/// Build with hot reloading rsx. Will not work with release builds. [default: false]
|
||||
#[clap(long)]
|
||||
#[clap(group = "release-incompatible")]
|
||||
#[serde(default)]
|
||||
pub hot_reload: bool,
|
||||
|
||||
|
|
Loading…
Reference in a new issue