From 7601626f3874df76e14bd771ecc9dcaabb72405b Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 15 Sep 2021 00:10:10 -0700 Subject: [PATCH] fix dev renderer --- .erb/configs/webpack.config.renderer.dev.babel.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.erb/configs/webpack.config.renderer.dev.babel.js b/.erb/configs/webpack.config.renderer.dev.babel.js index af5c12d..5cb11ff 100644 --- a/.erb/configs/webpack.config.renderer.dev.babel.js +++ b/.erb/configs/webpack.config.renderer.dev.babel.js @@ -260,5 +260,15 @@ export default merge(baseConfig, { verbose: true, disableDotRule: false, }, + before() { + console.log('Starting Main Process...'); + spawn('npm', ['run', 'start:main'], { + shell: true, + env: process.env, + stdio: 'inherit', + }) + .on('close', (code) => process.exit(code)) + .on('error', (spawnError) => console.error(spawnError)); + }, }, });