2022-03-14 11:11:12 +00:00
|
|
|
[application]
|
|
|
|
|
|
|
|
# dioxus project name
|
2022-03-14 14:39:15 +00:00
|
|
|
name = "dioxus-cli"
|
2022-03-14 11:11:12 +00:00
|
|
|
|
|
|
|
# default platfrom
|
|
|
|
# you can also use `dioxus serve/build --platform XXX` to use other platform
|
|
|
|
# value: web | desktop
|
2022-03-14 14:39:15 +00:00
|
|
|
default_platform = "desktop"
|
2022-03-14 11:11:12 +00:00
|
|
|
|
|
|
|
# Web `build` & `serve` dist path
|
|
|
|
out_dir = "dist"
|
|
|
|
|
|
|
|
# resource (static) file folder
|
|
|
|
asset_dir = "public"
|
|
|
|
|
|
|
|
[web.app]
|
|
|
|
|
|
|
|
# HTML title tag content
|
|
|
|
title = "dioxus | ⛺"
|
|
|
|
|
|
|
|
[web.watcher]
|
|
|
|
|
|
|
|
watch_path = ["src"]
|
|
|
|
|
|
|
|
# include `assets` in web platform
|
|
|
|
[web.resource]
|
|
|
|
|
|
|
|
# CSS style file
|
|
|
|
style = []
|
|
|
|
|
|
|
|
# Javascript code file
|
|
|
|
script = []
|
|
|
|
|
|
|
|
[web.resource.dev]
|
|
|
|
|
|
|
|
# Javascript code file
|
|
|
|
# serve: [dev-server] only
|
|
|
|
script = []
|
|
|
|
|
|
|
|
[application.tools]
|
|
|
|
|
|
|
|
# use binaryen.wasm-opt for output Wasm file
|
|
|
|
# binaryen just will trigger in `web` platform
|
2022-03-14 16:22:41 +00:00
|
|
|
binaryen = { wasm_opt = true }
|