Jacob e57a303748 docs(examples): add missing Readme and clarify existing (#3327) 3 years ago
..
src-tauri c6ba7f6524 fix(ci): update lockfiles 3 years ago
README.md e57a303748 docs(examples): add missing Readme and clarify existing (#3327) 3 years ago
index.html 2a7bf6d912 refactor(examples): improve security when rendering HTML strings [TRI-003] (#14) 3 years ago
package.json 1c97a151c1 feat(examples): add `resources` example (#2001) 4 years ago

README.md

Resource example

This example demonstrates the Tauri bundle resources functionality. The example adds src-tauri/assets/index.js as a resource (defined on tauri.conf.json > tauri > bundle > resources) and executes it using Node.js, locating the JavaScript file using the tauri::api::path::resolve_path API.

To execute run the following on the root directory of the repository: cargo run --example resources.