feat: config init platform arg

This commit is contained in:
mrxiaozhuox committed 2022-03-10 11:29:27 +08:00
1 parent 1e24b5b416
commit 91a8ce3169
3 files changed
+15 -4

No files matched your search

+3 -1
View File
@@ -1,3 +1,6 @@
// Dioxus-CLI
// https://github.com/DioxusLabs/cli
(function () {
var protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
var url = protocol + '//' + window.location.host + '/_dioxus/ws';
@@ -15,7 +18,6 @@
var ws = new WebSocket(url);
ws.onmessage = (ev) => {
if (ev.data == "reload") {
// alert("reload!!!");
window.location.reload();
}
};
+1 -1
View File
@@ -6,7 +6,7 @@ name = "{{project-name}}"
# default platfrom
# you can also use `dioxus serve/build --platform XXX` to use other platform
# value: web | desktop
default_platform = "web"
default_platform = "{{default-platform}}"
# Web `build` & `serve` dist path
out_dir = "dist"