not work with electron-build
Author: davisbraCreated Aug 22, 2020Updated Jul 7, 2021
I use nightmare on electron. it works fine in debugging mode. but when I build electron app with electron-builder, it not work and it open multiple window of electron main app. how can I fix this issue? its my code:
mainWindow.loadURL('https://google.com') const Nightmare = require('nightmare') const nightmare = Nightmare({autoHideMenuBar:true,menuBarVisible:false, electronPath: require('electron').app.getPath('exe');, show: true, }); nightmare.goto("https://github.com") .catch(error => { console.error('Search failed:', error) })
Source: segment-boneyard/nightmare