const { app, BrowserWindow, Menu } = require('electron') try { require('electron-reloader')(module, {}); } catch (_) { } const createWindow = () => { const win = new BrowserWindow({ width: 1366, height: 768, webPreferences: { // preload, nodeIntegration: true, contextIsolation: false, }, }) Menu.setApplicationMenu(null); console.log(process.env, process.env.NODE_ENV); win.loadURL('http://localhost:5400') // win.loadFile('./client/index.html') win.webContents.openDevTools() } app.whenReady().then(() => { createWindow() })