📜  电子热重载 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:17.146000             🧑  作者: Mango

代码示例2
/*
To use this code, you need to install the npm package 'electron-reload'
executing this command:
npm install electron-reload
*/

const path = require('path')

require('electron-reload')(__dirname, {
  electron: path.join(__dirname, 'node_modules', '.bin', 'electron'),
  hardResetMethod: 'exit'
});