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

此命令將在開發(fā)模式下打開 WebView。它使用文件中的屬性。?build.devPath??src-tauri/tauri.conf.json?

如果已向?qū)傩暂斎朊?,則此命令將在命令之前執(zhí)行。?build.beforeDevCommand??dev?

查看有關(guān)配置的更多信息。

如果您未使用 ,請確保您的正確,如果使用開發(fā)服務(wù)器,請確保在使用此命令之前已啟動。?build.beforeDevCommand??build.devPath?


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號