Skip to content

j0nl1/electron-reloader-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published