mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
feat(docs): mention @tauri-apps/api on integration guide, closes #2235
This commit is contained in:
@@ -41,6 +41,16 @@ If you decide to use Tauri as a local package with npm (not yarn), you will have
|
||||
}
|
||||
```
|
||||
|
||||
### 1. Install Tauri API Package as a Dependency (optional):
|
||||
|
||||
The `@tauri-apps/api` package is recommended for projects using ES modules or modern build tools such as Webpack or Vite. It is the most secure way to access the Tauri APIs.
|
||||
|
||||
```bash
|
||||
yarn add @tauri-apps/api
|
||||
# OR
|
||||
npm install @tauri-apps/api
|
||||
```
|
||||
|
||||
### 2. Initialize Tauri in Your App
|
||||
|
||||
<Command name="init" />
|
||||
|
||||
Reference in New Issue
Block a user