1.0.2 • Published 4 years ago

electron-reloader-webpack-plugin v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

npm info codecov_info

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 = require('electron-reloader-webpack-plugin');

module.exports = {
    plugins: [
        // ...
        // Call ElectronReloader here
        new ElectronReloaderPlugin('electron', ['.'])
        // another example
        new ElectronReloaderPlugin('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