mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-08-24 21:51:27 +08:00
refactor: better Debug
This commit is contained in:
@@ -28,8 +28,7 @@ export const ROOT_PATH = {
|
||||
let win: BrowserWindow | null = null
|
||||
// Here, you can also use other preload
|
||||
const preload = join(__dirname, '../preload/index.js')
|
||||
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
|
||||
const url = `http://${process.env['VITE_DEV_SERVER_HOST']}:${process.env['VITE_DEV_SERVER_PORT']}`
|
||||
const url = process.env.VITE_DEV_SERVER_URL
|
||||
const indexHtml = join(ROOT_PATH.dist, 'index.html')
|
||||
|
||||
async function createWindow() {
|
||||
|
Reference in New Issue
Block a user