Skip to main content

resolve_pkg_dir

Function resolve_pkg_dir 

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

Resolves the pkg directory for serving WASM artifacts.

Delegates to resolve_out_dir which respects --out-dir from wasm-pack args or defaults to {www_dir}/pkg.

§Arguments

  • &ModeArgs - The CLI arguments for resolving out_dir.

§Returns

  • PathBuf - The resolved pkg directory containing WASM build artifacts.