const { app, BrowserWindow } = require('electron'); // Add custom command line arguments before app is ready app.commandLine.appendSwitch('host-rules', 'MAP example.com 127.0.0.1'); app.commandLine.a