pub async fn resolve_serving_root(args: &ModeArgs) -> PathBufExpand description
Resolves the serving root directory for the development server.
When the output directory is inside the www directory, returns the resolved www directory.
When the output directory is outside the www directory, returns the parent of the output directory
so that index.html and WASM artifacts are co-located under the same serving root.
§Arguments
&ModeArgs- The CLI arguments containing crate_path, www_dir, wasm_pack_args.
§Returns
PathBuf- The resolved serving root directory.