webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

url not change with react-router

Open nickzheng opened this issue 11 years ago • 4 comments

I am experimenting with react-router using the react-webpack generator for development.

The webpack dev server launches at http://localhost:8000/webpack-dev-server/index.html, however, executing the react-router examples does not result in a URL change. It does when viewing from the root http://localhost:8000/ but then live updating does not fire.

It is beacuse webpack dev server use iframe. which hide the real url

nickzheng avatar Jul 29 '15 05:07 nickzheng

@nickzheng yes exactly - you might be able to get both live reloading working and see the URL changes if you take a look at the instructions here: http://webpack.github.io/docs/webpack-dev-server.html#combining-with-an-existing-server

jdelight avatar Sep 03 '15 17:09 jdelight

@nickzheng, for this you have to use --inline modus, because we simply can't mimick the iframe url reliably. Did you manage to fix it?

SpaceK33z avatar Aug 25 '16 16:08 SpaceK33z

I'm closing this issue because of inactivity. Feel free to comment, and we can always re-open it again.

SpaceK33z avatar Sep 03 '16 14:09 SpaceK33z

Several years have passed, is there a walk-around for this issue now?

jiehan1029 avatar May 13 '21 17:05 jiehan1029