We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1604482 commit 76341d4Copy full SHA for 76341d4
2 files changed
src-tauri/src/commands/window.rs
@@ -100,7 +100,7 @@ pub async fn toggle_devtools(
100
let _ = app;
101
}
102
103
- #[cfg(debug_assertions)]
+ #[cfg(all(debug_assertions, desktop))]
104
if let Some(window) = app.get_webview_window("main") {
105
if window.is_devtools_open() {
106
window.close_devtools();
vite.config.ts
@@ -18,8 +18,16 @@ export default defineConfig({
18
emptyOutDir: true,
19
},
20
server: {
21
+ host: process.env.TAURI_DEV_HOST || false,
22
port: 1420,
23
strictPort: true,
24
+ hmr: process.env.TAURI_DEV_HOST
25
+ ? {
26
+ protocol: "ws",
27
+ host: process.env.TAURI_DEV_HOST,
28
+ port: 1421,
29
+ }
30
+ : undefined,
31
32
clearScreen: false,
33
})
0 commit comments