Create React App V2 - Multiple entry points

后端 未结 3 1206
无人共我
无人共我 2021-02-08 03:21

I\'m trying to build a React app with 2 entry points, one for the App and one for the Admin panel.

I\'m starting with Create React App V2 and following this gitHub issue

3条回答
  •  心在旅途
    2021-02-08 03:56

    This one is working for the latest react version v2 but it only works for the build(npm run build); running npm start in react folder (client) would have a bug

    https://github.com/chiKaRau/git-reactv2-express-multiple-entry-point

    other sources http://houserqu.com/2018/04/26/create-react-app-%E9%85%8D%E7%BD%AE%E5%A4%9A%E9%A1%B5%E9%9D%A2/

    https://www.jianshu.com/p/951287ce12c0

    http://imshuai.com/create-react-app-multiple-entry-points/

提交回复
热议问题