chore: comments #129

This commit is contained in:
younglei 2022-05-16 21:35:57 +08:00 committed by GitHub
parent be8b8a07bc
commit 70a15f2c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,8 +43,8 @@ function watchMain(server) {
} }
electronProcess = spawn(electron, ['.'], { env }) electronProcess = spawn(electron, ['.'], { env })
// https://github.com/electron-vite/electron-vite-vue/pull/129
electronProcess.on('exit', process.exit) electronProcess.on('exit', process.exit)
// https://github.com/electron-vite/electron-vite-vue/pull/129
electronProcess.stdout.on('data', (data) => { electronProcess.stdout.on('data', (data) => {
const str = data.toString().trim() const str = data.toString().trim()
str && console.log(str) str && console.log(str)