mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
commit
410c8b98ae
@ -1,5 +1,5 @@
|
|||||||
|
import { lstat } from 'fs'
|
||||||
import fs from 'fs'
|
import { cwd } from 'process'
|
||||||
import { ipcRenderer } from 'electron'
|
import { ipcRenderer } from 'electron'
|
||||||
|
|
||||||
// Usage of ipcRenderer.on
|
// Usage of ipcRenderer.on
|
||||||
@ -7,7 +7,7 @@ ipcRenderer.on('main-process-message', (_event, ...args) => {
|
|||||||
console.log('[Receive Main-process message]:', ...args)
|
console.log('[Receive Main-process message]:', ...args)
|
||||||
})
|
})
|
||||||
|
|
||||||
fs.lstat(process.cwd(), (err, stats) => {
|
lstat(cwd(), (err, stats) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user