0.1.8 • Published 5 years ago

electron-launcher-webpack-plugin v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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'

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago