mirror of
https://github.com/tauri-apps/vue-cli-plugin-tauri.git
synced 2026-02-04 02:31:17 +01:00
a0b9540e796fdd020835f2ea8524dae930a02db3
vue-cli-plugin-tauri
Tauri is a toolkit for creating smaller, faster, and more secure desktops applications with a web frontend. This plugin configures Tauri to work in your Vue CLI project.
Installation
Please visit the documentation website or our discord server if you have any problems.
General Prerequisites:
- NodeJS/npm
- Vue CLI (
yarn global add @vue/cli/npm i -g @vue/cli) - Rust/Cargo
- Tauri CLI (
cargo install tauri-bundler) - Yarn (optional but recommended over npm)
Detailed Prerequisite Installation Instructions:
- Linux: https://tauri.studio/docs/getting-started/setup-linux/
- Mac: https://tauri.studio/docs/getting-started/setup-macos/
- Windows: https://tauri.studio/docs/getting-started/setup-windows/
Steps:
- Create a Vue CLI project (or cd into an existing one)
vue create my-tauri-app
cd my-tauri-app
- Install Vue CLI Plugin Tauri
vue add tauri
- Run commands
With Yarn:
# Start dev server with HMR
yarn tauri:serve
# Build executable
yarn tauri:build
With npm:
# Start dev server with HMR
npm run tauri:serve
# Build executable
npm run tauri:build
Languages
JavaScript
100%