1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Change build_demo_web.sh option from --fast to --optimize

This commit is contained in:
Emil Ernerfeldt
2022-08-02 09:56:38 +02:00
parent 2500a60062
commit 5d8ef5326b
3 changed files with 19 additions and 15 deletions

View File

@@ -6,11 +6,13 @@ cd "$script_path/.."
# Starts a local web-server that serves the contents of the `doc/` folder,
# i.e. the web-version of `egui_demo_app`.
PORT=8888
echo "ensuring basic-http-server is installed…"
cargo install basic-http-server
echo "starting server…"
echo "serving at http://localhost:8888"
echo "serving at http://localhost:${PORT}"
(cd docs && basic-http-server --addr 127.0.0.1:8888 .)
# (cd docs && python3 -m http.server 8888 --bind 127.0.0.1)
(cd docs && basic-http-server --addr 127.0.0.1:${PORT} .)
# (cd docs && python3 -m http.server ${PORT} --bind 127.0.0.1)