const { app, BrowserWindow, Menu } = require('electron') const createWindow = () => { Menu.setApplicationMenu(null) const win = new BrowserWindow({ center: true, minWidth: 1280, minHeight: 800, icon: 'dist/favicon.ico' }) win.maximize() win.loadFile('dist/index.html') } app.whenReady().then(() => { createWindow() })