docs: commit docs

This commit is contained in:
YuKun Liu committed 2022-02-27 08:22:00 +08:00
1 parent 4480874ee2
commit 91c40f3b88
2 files changed
+8 -8

No files matched your search

+4 -4
View File
@@ -1,6 +1,6 @@
# Build # Build
`dioxsu build` command can help you `pack & build` a dioxus project. The `dioxus build` command can help you `pack & build` a dioxus project.
``` ```
dioxus-build dioxus-build
@@ -15,7 +15,7 @@ OPTIONS:
--release [default: false] --release [default: false]
``` ```
you can use this command to build project to `out_dir` : You can use this command to build project to `out_dir` :
``` ```
dioxus build --release dioxus build --release
@@ -23,7 +23,7 @@ dioxus build --release
## Target platform ## Target platform
use option `platform` choose build target platform: Use option `platform` choose build target platform:
``` ```
# for desktop project # for desktop project
@@ -39,7 +39,7 @@ dioxus build --platform web
## Build Example ## Build Example
you can use `--example {name}` to build a example code. You can use `--example {name}` to build a example code.
``` ```
# build `example/test` code # build `example/test` code
+4 -4
View File
@@ -1,6 +1,6 @@
# Serve # Serve
`dioxsu serve` can start a dev server (include hot-reload tool) to run the project. The `dioxus serve` can start a dev server (include hot-reload tool) to run the project.
``` ```
dioxus-serve dioxus-serve
@@ -15,7 +15,7 @@ OPTIONS:
--release [default: false] --release [default: false]
``` ```
you can use this command to build project and start a `dev server` : You can use this command to build project and start a `dev server` :
``` ```
dioxus serve dioxus serve
@@ -23,7 +23,7 @@ dioxus serve
## Target platform ## Target platform
use option `platform` choose build target platform: Use option `platform` choose build target platform:
``` ```
# for desktop project # for desktop project
@@ -41,7 +41,7 @@ dioxus serve --platform web
## Serve Example ## Serve Example
you can use `--example {name}` to start a example code. You can use `--example {name}` to start a example code.
``` ```
# build `example/test` code # build `example/test` code