Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = async function performStart(config) {
const compiler = webpack(config('development'))
let electronStarted = false
await buildRenderer('renderer')
const watching = compiler.watch({}, function(err, stats) {
if (!err && !stats.hasErrors() && !electronStarted) {
electronStarted = true
childProcess
.spawn(electron, ['./app/background.js'], { stdio: 'inherit' })
.on('close', () => {
watching.close()
})
}
})
}