electron-reloader-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i electron-reloader-webpack-plugin

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

5.1 kB

Total Files

5

Last publish

Collaborators

  • j0nl1