Skip to main content

package_zero_js_web_bundle

Function package_zero_js_web_bundle 

Source
pub fn package_zero_js_web_bundle(
    out_dir: &Path,
    title: &str,
) -> Result<PathBuf>
Expand description

Packages a compiled WebAssembly output directory into a zero-JS-file bundle containing only index.html and .wasm.

§Arguments

  • &Path - Web build output directory containing the compiled .wasm artifact.
  • &str - HTML document title.

§Returns

  • io::Result<PathBuf> - Path to the generated index.html entry file.