New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

electron-reloader-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-reloader-webpack-plugin

Webpack plugin for reload electron

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

webpack

FAQs

Package last updated on 30 Apr 2020

Related posts