Basic Demo of Electron (w/ electron-forge v6) & Jimp
This Electron + React App (w/ Webpack & Forge) shows how to create and show a grayscale basic png using Jimp
- Pull in this repo
npm i
npm start
- Pull in this repo
npm i
npm run package
- go to the
./out
folder to find the executable file that was just packaged and double click / invoke
You should see something like:
To create a similar project from scratch:
- Install electron-forge v6
npm i -g @electron-forge/cli
- create electron-forge project w/ webpack
electron-forge init ef6-sharp --template=webpack
- add react:
npm i --save react react-dom
- add babel:
npm i --save-dev babel-loader @babel/core @babel/preset-env
- add .babelrc and update webpack.rules.js & app.js as shown in above repo