This project is using create-react-app
which is not really recommended anymore. Maybe I'll make something similar for Vite.
electron-react-boilerplate was a little too complex so I made my own :)
Disclaimer: This project uses yarn
do NOT use npm
- Install packages with
yarn install
- Start the development server with
yarn start
- Build the optimized production version with
yarn build
- Package the application with
yarn package
yarn package
creates a package for the platform you're currently using.
To build for other platforms use yarn package:<platform>
or yarn package:all
build
contains compiled code for both React and Electron (yarn build
)dist
contains packaged Electron application (yarn package
)electron
contains all Electron codepublic
React public filessrc
contains all React codewebpack
Webpack configuration
- Webpack Bundle Analyzer
- Webpack Terser Plugin
- Mini CSS Extract Plugin
- CSS Minimizer Webpack Plugin