Skip to content
Tauri 中文网

Qwik

本指南将引导你使用 Qwik 网页框架创建你的 Tauri 应用。你可以在 https://qwik.dev 了解更多关于 Qwik 的信息。

🌐 This guide will walk you through creating your Tauri app using the Qwik web framework. Learn more about Qwik at https://qwik.dev.

🌐 Checklist

  • 使用 SSG。Tauri 不支持基于服务器的解决方案。
  • tauri.conf.json 中将 dist/ 用作 frontendDist

🌐 Example Configuration

  1. npm create qwik@latest
    cd <PROJECT>
  2. npm run qwik add static
  3. npm install -D @tauri-apps/cli@latest
  4. npm run tauri init
  5. tauri.conf.json
    {
    "build": {
    "devUrl": "http://localhost:5173"
    "frontendDist": "../dist",
    "beforeDevCommand": "npm run dev",
    "beforeBuildCommand": "npm run build"
    }
    }
  6. npm run tauri dev

Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站