🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

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
Maintainers
1
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

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts