Skip to main content

resolve_web_dist

Function resolve_web_dist 

Source
pub async fn resolve_web_dist(args: &ModeArgs) -> PathBuf
Expand description

Resolves the directory the web build output is published into.

The native builders embed the pages this build produced, so the directory must be the one the web build actually wrote: the serving root holds the page, and the wasm artifacts sit beside it.

§Arguments

  • &ModeArgs - The build arguments carrying the crate path.

§Returns

  • PathBuf - The web build output directory.