Skip to content

Commit fb51313

Browse files
committed
fix(serve --debug): rebuild background on change
1 parent 927a621 commit fb51313

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ module.exports = (api, options) => {
319319
// Restart on main process file change
320320
mainProcessWatch.forEach(file => {
321321
fs.watchFile(api.resolve(file), () => {
322+
if (args.debug) {
323+
// Rebuild main process
324+
startElectron()
325+
return
326+
}
322327
// Never restart after SIGINT
323328
if (childRestartOnExit < 0) {
324329
return

0 commit comments

Comments
 (0)