使用 create-react-app 创建项目,通过 yarn eject 暴露所有 webpack 配置。项目使用 antd 组件库,配置了 babel-plugin-import 按需加载。项目架构使用 React 全家桶,redux 中间件使用 redux-thunk
https://github.com/xconline/react-electron.git
开发模式:package.json 中 DEV 设为 true
npm install
npm start
npm e-start
生产模式:package.json 中 DEV 设为 false 修改 electron-package 命令,调用 electron-packager --helo 查看使用说明
npm build
npm electron-package