Take your web app to the next level with the powerful combination of Tauri and Vite. By using the Tauri plugin for Vite, you can easily build fast and secure desktop applications.
To get started, install the template's dependencies using npm install (or pnpm install or yarn).
The preferred method is to install Tauri as a development dependency in your app:
npm install vite-tauri-plugin
In your vite.config.js
file, import viteTauriPlugin
from 'tauri-vite-plugin', and add it to your plugins array:
import viteTauriPlugin from "tauri-vite-plugin";
const config = {
plugins: [viteTauriPlugin()],
};
export default config;
In your package.json file, add the following script:
{
"scripts": {
"tauri": "tauri"
}
}
With this setup, you can now take advantage of Tauri's many features and build desktop applications that run natively on Windows, macOS, and Linux. Get started today!