Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

electron hot reload

/*
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'
});
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #electron #hot #reload
ADD COMMENT
Topic
Name
5+3 =