Merge branch 'master' into master
This commit is contained in:
3 files changed
+30
-22
No files matched your search
+6
-1
@@ -132,7 +132,7 @@ pub fn build(config: &CrateConfig) -> Result<()> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// this code will copy all public file to the output dir
|
||||
let copy_options = fs_extra::dir::CopyOptions {
|
||||
overwrite: true,
|
||||
@@ -327,6 +327,11 @@ pub fn gen_page(config: &DioxusConfig, serve: bool) -> String {
|
||||
|
||||
html = html.replace("{app_name}", &config.application.name);
|
||||
|
||||
html = match &config.web.app.base_path {
|
||||
Some(path) => html.replace("{base_path}", path),
|
||||
None => html.replace("{base_path}", "."),
|
||||
};
|
||||
|
||||
let title = config
|
||||
.web
|
||||
.app
|
||||
|
||||
Reference in new issue
Block a user