Skip to main content

tauri_frontend

Function tauri_frontend 

Source
pub fn tauri_frontend(
    manifest_dir: impl AsRef<Path>,
    opts: &Emit,
    explicit_touch: Option<&str>,
)
Expand description

All the generated files at the layout every Tauri consumer already uses: themes/ beside the manifest, and frontend/css/{geometry,layout,typography}.css under it.

Pass env!("CARGO_MANIFEST_DIR"). Consumers that want different paths call themes, layout_css and typography_css directly.

The font URL is fonts, relative to the frontend’s index — the one layout a Tauri app has, since its frontend is served from its own directory.

§Panics

If any file cannot be written.