Electron Reloader (Webpack Plugin) 👋
Webpack plugin that reloads Electron main process.
Installation
Use NPM in order to install the package as dependecy.
npm install -D electron-reloader-webpack-plugin
Usage
Add plugin to your webpack config
const ElectronReloaderPlugin = ; moduleexports = plugins: // ... // Call ElectronReloader here 'electron' '.' // another example 'npm' 'run' 'electron:start' // In first argument you define what command to use and the second argument what args want to use. ;
Start webpack with watch option
webpack --watch