Tauri dev

2024-01-31 09:43 更新
  • npm
npm run tauri plugin dev
  • Yarn
yarn tauri plugin dev
  • pnpm
pnpm tauri plugin dev
  • Cargo
cargo tauri plugin dev
Usage: cargo-tauri dev [OPTIONS] [ARGS]...

Arguments:
  [ARGS]...  Command line arguments passed to the runner. Arguments after `--` are passed to the application

Options:
  -r, --runner <RUNNER>           Binary to use to run the application
  -v, --verbose...                Enables verbose logging
  -t, --target <TARGET>           Target triple to build against
  -f, --features [<FEATURES>...]  List of cargo features to activate
  -e, --exit-on-panic             Exit on panic
  -c, --config <CONFIG>           JSON string or path to JSON file to merge with tauri.conf.json
      --release                   Run the code in release mode
      --no-watch                  Disable the file watcher
      --no-dev-server             Disable the dev server for static files
      --port <PORT>               Specify port for the dev server for static files. Defaults to 1430 Can also be set using `TAURI_DEV_SERVER_PORT` env var
  -h, --help                      Print help
  -V, --version                   Print version

此命令将在开发模式下打开 WebView。它使用文件中的属性。​build.devPath​​src-tauri/tauri.conf.json

如果已向属性输入命令,则此命令将在命令之前执行。​build.beforeDevCommand​​dev

查看有关配置的更多信息。

如果您未使用 ,请确保您的正确,如果使用开发服务器,请确保在使用此命令之前已启动。​build.beforeDevCommand​​build.devPath


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号