Miss any of our Open RFC calls?Watch the recordings here! »

restart-electron-webpack-plugin

0.0.1 • Public • Published

Introduction

npm version dependencies peerDependencies downloads MIT License

Webpack plugin that automatically (re)starts your Electron.js app after code changes.

Installation

Source can be loaded via npm.

# npm package
$ npm install --save-dev restart-electron-webpack-plugin

Usage

Update your webpack.config.js:

module.exports = {
  ...
  plugins: [
    new RestartElectronPlugin({
      // Defaults to process.cwd() + script
      script: 'path/to/app.js',
 
      // The command line arguments to launch electron (optional)
      arguments: ["--enable-logging"]
    }),
  ],
  ...
};

Install

npm i restart-electron-webpack-plugin

DownloadsWeekly Downloads

18

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar