How to use the nextron.buildRenderer function in nextron

To help you get started, we’ve selected a few nextron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github saltyshiomix / nextron / build / common / perform-start.js View on Github external
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()
        })
    }
  })
}

nextron

⚡ NEXT.js + Electron ⚡

MIT
Latest version published 5 months ago

Package Health Score

70 / 100
Full package analysis