- npm init -y
- npm install --save-dev electron
Add a start script to package.json
:
"start": "electron main.js",
Add the main.js
and index.html
files.
Run the app with npm run start
.
We use the node renderer()
in the Script tag and import the CSS normally.
npm install -g electron-icon-maker-fix
"./node_modules/.bin/electron-icon-maker" -i build-assets/icon-man.png -o build/