mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 12:06:40 +08:00
fix(🐞): 🚧 Use ['ENV_NAME'] avoid vite:define plugin
This commit is contained in:
parent
0bcaa99bda
commit
77acb0a5b0
@ -25,7 +25,8 @@ export const ROOT_PATH = {
|
|||||||
let win: BrowserWindow | null = null
|
let win: BrowserWindow | null = null
|
||||||
// Here, you can also use other preload
|
// Here, you can also use other preload
|
||||||
const preload = join(__dirname, '../preload/index.js')
|
const preload = join(__dirname, '../preload/index.js')
|
||||||
const url = `http://${process.env.VITE_DEV_SERVER_HOST}:${process.env.VITE_DEV_SERVER_PORT}`
|
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
|
||||||
|
const url = `http://${process.env['VITE_DEV_SERVER_HOST']}:${process.env['VITE_DEV_SERVER_PORT']}`
|
||||||
const indexHtml = join(ROOT_PATH.dist, 'index.html')
|
const indexHtml = join(ROOT_PATH.dist, 'index.html')
|
||||||
|
|
||||||
async function createWindow() {
|
async function createWindow() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user