Change site_root default to ".". Hope that cargo-leptos has that check

This commit is contained in:
benwis 2023-01-08 14:54:32 -08:00
parent 6b729f9131
commit 6576d8eda1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ pub struct LeptosOptions {
#[builder(setter(into))]
pub output_name: String,
/// The path of the all the files generated by cargo-leptos
#[builder(setter(into), default="pkg".to_string())]
#[builder(setter(into), default=".".to_string())]
pub site_root: String,
/// The path of the WASM and JS files generated by wasm-bindgen from the root of your app
/// By default, wasm-bindgen puts them in `pkg`.