refactor: move `electron-*` to `electron/*`

This commit is contained in:
草鞋没号 2022-06-06 20:22:13 +08:00
parent 9bab724711
commit ab9e5bf3c2
2 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
let win: BrowserWindow | null = null
// Here, you can also use other preload
const splash = join(__dirname, '../electron-preload/splash.js')
const splash = join(__dirname, '../preload/splash.js')
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
const url = `http://${process.env['VITE_DEV_SERVER_HOST']}:${process.env['VITE_DEV_SERVER_PORT']}`