We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e0ca3c commit 1740c42Copy full SHA for 1740c42
client/client-server.js
@@ -0,0 +1,17 @@
1
+import { exec } from 'child_process';
2
+
3
+const vite = exec('npx vite');
4
5
+vite.stdout.on('data', (data) => {
6
+ console.log(data.toString());
7
+});
8
9
+vite.stderr.on('data', (data) => {
10
+ console.error(data.toString());
11
12
13
+process.on('SIGINT', () => {
14
+ console.log('Killing Vite process');
15
+ vite.kill('SIGINT');
16
+ process.exit();
17
client/package.json
@@ -47,6 +47,7 @@
47
},
48
"scripts": {
49
"start": "vite --force",
50
+ "windows-start": "node client-server.js",
51
"build": "vite build",
52
"test": "jest",
53
"format": "prettier --write ."
0 commit comments