feat(docs): mention @tauri-apps/api on integration guide, closes #2235

This commit is contained in:
Lucas Nogueira 2021-08-14 10:35:33 -03:00
parent 9acd83017f
commit 206c1d0f23
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F

View File

@ -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" />