此程式是基於 electron-react-boilerplate 開發, 相關環境調整請參考那裏。
然後到達 electron-react-boilerplate
開發環境的 webpack.config.base.js
把 externals: Object.keys(externals || {})
註解
( 因為如果弄成外部載入 專案底下的 react-tap-event-plugin 讀取 react 會有問題 , 參考 build-react-with-tap-event )
npm i
接著進入 app 資料夾內, 也執行以上指令
在最外層環境同時執行以下兩條指令
$ npm run hot-server
$ npm run start-hot
或者
$ npm run dev
- Electron 程式主框架
- React
- Redux