We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0086602 commit d800d85Copy full SHA for d800d85
scripts/watch.mjs
@@ -1,6 +1,7 @@
1
import { spawn } from 'child_process'
2
import { createServer, build } from 'vite'
3
import electron from 'electron'
4
+import readline from 'readline'
5
6
const query = new URLSearchParams(import.meta.url.split('?')[1])
7
const debug = query.has('debug')
@@ -58,6 +59,11 @@ function watchPreload(server) {
58
59
})
60
}
61
62
+// block CTRL + C to exit the application directly without displaying the query in Windows
63
+if (process.platform === 'win32') {
64
+ readline.createInterface({ input: process.stdin, output: process.stdout }).on('SIGINT', process.exit)
65
+}
66
+
67
// bootstrap
68
const server = await createServer({ configFile: 'packages/renderer/vite.config.ts' })
69
0 commit comments