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

0.1.8 • Public • Published

Electron launcher webpack plugin

Makes Electron + Webpack less painfull.

What's it doing?

  • Starts electron after the main and renderer have been compiled for the first time
  • Restarts electron when a main process change has been compiled
  • Reload your app's BrowserWindows when a renderer process change has been compiled
  • Will only run in development mode

electron-launcher-webpack-plugin

Usage

$ npm install --save-dev electron-launcher-webpack-plugin
// webpack.config.ts

import ElectronLauncherPlugin from 'electron-launcher-webpack-plugin'

const mainConfig: webpack.Configuration = {
  // …
  plugins: [ new ElectronLauncherPlugin(true) ],
};

const rendererConfig: webpack.Configuration = {
  // …
  plugins: [ new ElectronLauncherPlugin(false) ],
}

And in your main process file/entry, add: import 'electron-launcher-webpack-plugin/listener'

Readme

Keywords

none

Package Sidebar

Install

npm i electron-launcher-webpack-plugin

Weekly Downloads

0

Version

0.1.8

License

MIT

Unpacked Size

6.67 kB

Total Files

7

Last publish

Collaborators

  • chadrien