electron-auto-reload-webpack-plugin

Webpack plugin that reload the electron process after compilation

Usage no npm install needed!

<script type="module">
  import electronAutoReloadWebpackPlugin from 'https://cdn.skypack.dev/electron-auto-reload-webpack-plugin';
</script>

README

Installation

npm i electron-auto-reload-webpack-plugin --save-dev

Usage:

Set the following field in the package.json

"main": "path/to/main.js"

Define the plugin in your webpack configuration

const { ElectronAutoReloadPlugin } = require('electron-auto-reload-webpack-plugin')

module.exports = {
  target: 'electron-main',
  // ...
  plugins: [new ElectronAutoReloadPlugin()]
  // ...
}