Electron Package Plugin
A Webpack plugin to generate the Electron package.json with the values in the project package.json
Installation
npm install --save electron-package-plugin
Usage
Giving the package.json in your project, ex:
You can just set the plugin in the Electron main webpack.config.js
// webpack.config.jsconst ElectronPackagePlugin = ; moduleexports = // ... plugins: // ... // ...;
This will generate a package.json
file in the target folder as the follow:
The plugin will read and use the follow properties:
name version description keywords author homepage license repository bugs engines
Options
main
: (default:main.js
) You can set the name of the main file of you Electron aplication.
Acknowledgment
This plugin it's just a specific use-case using the awesome generate-json-webpack-plugin
.
Really thanks to the author @elliottsj.
Todo
- Tests
- Set an option to define the structure to be used
Changelog
- v0.1.1 - Fixed Node v4 compatibility (2016-10-30)
- v0.1.0 - Initial release (2016-10-26)