mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 12:06:40 +08:00
commit
8c846a34c0
@ -25,9 +25,7 @@ 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')
|
||||||
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
|
const url = `http://${process.env.VITE_DEV_SERVER_HOST}:${process.env.VITE_DEV_SERVER_PORT}`
|
||||||
const url = `http://${process.env['VITE_DEV_SERVER_HOST']}:${process.env['VITE_DEV_SERVER_PORT']}`
|
|
||||||
const indexHtml = join(ROOT_PATH.dist, 'index.html')
|
|
||||||
|
|
||||||
async function createWindow() {
|
async function createWindow() {
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"electron": "^19.0.3",
|
"electron": "^19.0.3",
|
||||||
"electron-builder": "^23.0.3",
|
"electron-builder": "^23.0.3",
|
||||||
"typescript": "^4.7.3",
|
"typescript": "^4.7.3",
|
||||||
"vite": "^2.9.9",
|
"vite": "^3.0.0-beta.5",
|
||||||
"vite-plugin-electron": "^0.6.1",
|
"vite-plugin-electron": "^0.6.1",
|
||||||
"vite-plugin-resolve": "^2.1.2",
|
"vite-plugin-resolve": "^2.1.2",
|
||||||
"vue": "^3.2.36",
|
"vue": "^3.2.36",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user