Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

electron hot model reload

// install 
npm i -D electron-reloader

// add this to main.js at top
try { require('electron-reloader')(module);} catch {};

// add this to package.json under `scripts` object
'start': 'electron .'

// now run electron and change file
npm run start
Source by github.com #
 
PREVIOUS NEXT
Tagged: #electron #hot #model #reload
ADD COMMENT
Topic
Name
9+2 =