diff --git a/examples/leptos-tailwind-axum/README.md b/examples/leptos-tailwind-axum/README.md index 69a26e89e..2de77c4a2 100644 --- a/examples/leptos-tailwind-axum/README.md +++ b/examples/leptos-tailwind-axum/README.md @@ -80,7 +80,7 @@ This crate can be run without `cargo-leptos`, using `wasm-pack` and `cargo`. To To run it as a server side app with hydration, first you should run ```bash -wasm-pack build --target=web --no-default-features --features=hydrate +wasm-pack build --target=web --debug --no-default-features --features=hydrate ``` to generate the WebAssembly to hydrate the HTML delivered from the server. @@ -99,4 +99,4 @@ cargo run --no-default-features --features=ssr You'll need to install trunk to client side render this bundle. 1. `cargo install trunk` - Then the site can be served with `trunk serve --open` \ No newline at end of file + Then the site can be served with `trunk serve --open` diff --git a/examples/tailwind/README.md b/examples/tailwind/README.md index 1c2ad30b2..796afa690 100644 --- a/examples/tailwind/README.md +++ b/examples/tailwind/README.md @@ -90,8 +90,8 @@ By default, `cargo-leptos` uses `nightly` Rust, `cargo-generate`, and `sass`. If ## Alternatives to cargo-leptos -This crate can be run without `cargo-leptos`, using `wasm-pack` and `cargo`. To do so, you'll need to install some other tools. -0. `cargo install wasm-pack` +This crate can be run without `cargo-leptos`, using `wasm-pack` and `cargo`. To do so, you'll need to install some other tools. 0. `cargo install wasm-pack` + 1. Edit the `[package.metadata.leptos]` section and set `site-root` to `"."`. You'll also want to change the path of the `` component in the root component to point towards the CSS file in the root. This tells leptos that the WASM/JS files generated by wasm-pack are available at `./pkg` and that the CSS files are no longer processed by cargo-leptos. Building to alternative folders is not supported at this time. You'll also want to edit the call to `get_configuration()` to pass in `Some(Cargo.toml)`, so that Leptos will read the settings instead of cargo-leptos. If you do so, your file/folder names cannot include dashes. ### Server Side Rendering With Hydration @@ -99,7 +99,7 @@ This crate can be run without `cargo-leptos`, using `wasm-pack` and `cargo`. To To run it as a server side app with hydration, first you should run ```bash -wasm-pack build --target=web --no-default-features --features=hydrate +wasm-pack build --target=web --debug --no-default-features --features=hydrate ``` to generate the WebAssembly to hydrate the HTML delivered from the server.