historyApiFallback doesn't work in Webpack dev server

后端 未结 4 845
小鲜肉
小鲜肉 2020-12-05 07:09

I use Webpack dev server and browserHistory in React Router to manipulate with urls by HTML5 History API. historyapifallback-option does not work in my webpack config file.

4条回答
  •  时光取名叫无心
    2020-12-05 07:40

    I had this problem and was only able to fix it using index: '/' with webpack 4.20.2

            historyApiFallback: {
                index: '/'
            }
    

提交回复
热议问题