template-electron17-vue3/start.mjs

4 lines
178 B
JavaScript

import { spawn } from 'child_process';
import electron from 'electron';
const child = spawn(electron, ['main.js'], { stdio: 'inherit' });
child.on('close', () => process.exit());