Skip to content
Tauri 中文网

Qwik

本指南将引导你使用 Qwik Web 框架创建 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 不支持基于服务器的解决方案。

    ¥Use SSG. Tauri doesn’t support server-based solutions.

  • tauri.conf.json 中将 dist/ 用作 frontendDist

    ¥Use dist/ as frontendDist in tauri.conf.json.

示例配置

¥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号