0.1.0 • Published 7 years ago
run-electron-webpack-plugin v0.1.0
run-electron-webpack-plugin
Install
yarn add run-electron-webpack-plugin --dev
Usage
Your webpack.config.js
:
const RunElectronPlugin = require('run-electron-webpack-plugin')
module.exports = {
plugins: [
new RunElectronPlugin('./path/to/electron/entry/file.js')
]
}
Then it will automatically start Electron app once webpack finishes bundling.
Note: Make sure you only add this plugin when you run webpack through a server or using
webpack-dev-server
.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
run-electron-webpack-plugin © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily
0.1.0
7 years ago