-
Notifications
You must be signed in to change notification settings - Fork 213
[Issue] Pushstate webpack dev server public path #175
Comments
@rj254 it seems like the solution is to just set the |
I believe so, locally I had to set both the output path to '/' and the devServer.publicPath to '/' in order to get this to work. More (relevant) information can be found here: react-boilerplate/react-boilerplate#113 |
Cool, I'll upgrade webpack-chain, then the web middleware accordingly. |
Setting the |
|
I believe devServer.publicPath has a set of rules including that the path should start and end with / . It turns out the default is also just "/". What really should happen is that the output public path should be specified as "/" not "./" when using the HTML webpack plugin. |
Sure |
Unfortunately, the changes in #179 did not fix the issue. There is no need to set publicPath to '/' as it is defaulted to '/'. The webpack docs additionally recommend the following: |
I think in dev run |
So, we can't set |
Please don't set |
@constgen yep, this is about what the best value to set |
I believe this is done and can be closed. We explicitly set |
remix-run/react-router#676 (comment)
There should probably be an option to set publicPath on the devServer so that
react-router
and other libraries that rely on it can work out of the box.The text was updated successfully, but these errors were encountered: