mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 05:03:06 +00:00
Change config package to sub_package
This commit is contained in:
parent
20148c5de6
commit
e487571ce2
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ impl Default for DioxusConfig {
|
|||
default_platform: "web".to_string(),
|
||||
out_dir: Some(PathBuf::from("dist")),
|
||||
asset_dir: Some(PathBuf::from("public")),
|
||||
package: None,
|
||||
sub_package: None,
|
||||
},
|
||||
web: WebConfig {
|
||||
app: WebAppConfing {
|
||||
|
@ -63,7 +63,7 @@ pub struct ApplicationConfig {
|
|||
pub default_platform: String,
|
||||
pub out_dir: Option<PathBuf>,
|
||||
pub asset_dir: Option<PathBuf>,
|
||||
pub package: Option<String>,
|
||||
pub sub_package: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
@ -121,7 +121,7 @@ impl CrateConfig {
|
|||
pub fn new() -> Result<Self> {
|
||||
let dioxus_config = DioxusConfig::load()?;
|
||||
|
||||
let crate_dir = if let Some(package) = &dioxus_config.application.package {
|
||||
let crate_dir = if let Some(package) = &dioxus_config.application.sub_package {
|
||||
crate::cargo::crate_root()?.join(package)
|
||||
} else {
|
||||
crate::cargo::crate_root()?
|
||||
|
|
Loading…
Reference in a new issue