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
buildcontains compiled code for both React and Electron (yarn build)distcontains packaged Electron application (yarn package)electroncontains all Electron codepublicReact public filessrccontains all React codewebpackWebpack configuration
- Webpack Bundle Analyzer
- Webpack Terser Plugin
- Mini CSS Extract Plugin
- CSS Minimizer Webpack Plugin