How to allow for webpack-dev-server to allow entry points from react-router

后端 未结 9 1971
無奈伤痛
無奈伤痛 2020-12-04 05:15

I\'m creating an app that uses webpack-dev-server in development alongside react-router.

It seems that webpack-dev-server is built around the assumption that you wil

9条回答
  •  离开以前
    2020-12-04 06:03

    May be not in all cases, but seems the publicPath: '/' option in the devServer is easiest solution to fix deep routes issue, see: https://github.com/ReactTraining/react-router/issues/676

提交回复
热议问题