Vite
Ce contenu n’est pas encore disponible dans votre langue.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. This guide is accurate as of Vite 5.4.8.
Checklist
- Use
dist/
asfrontendDist
intauri.conf.json
. - Use
process.env.TAURI_DEV_HOST
as the development server host IP when set to run on iOS physical devices.
Example configuration
-
Assuming you have the following
dev
andbuild
scripts in yourpackage.json
:You can configure the Tauri CLI to use your Vite development server and dist folder along with the hooks to automatically run the Vite scripts:
-
Update Vite configuration:
© 2024 Tauri Contributors. CC-BY / MIT