[][src]Function tauri_inliner::inline_file

pub fn inline_file<P: AsRef<Path>>(
    file_path: P,
    config: Config
) -> Result<String>

Returns a Result<String> of the html file at file path with all the assets inlined.

Arguments

  • file_path - The path of the html file.
  • config - Pass a config file to select what features to enable. Use Default::default() to enable everything