0.0.1 • Published 9 years ago

restart-electron-webpack-plugin v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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"]
    }),
  ],
  ...
};