-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic browser refresh without HTML changes #43
Comments
@glenjamin What if we changed the recommendation to webpack-dev-server |
That would work too, the downside being that it's not quite as clear what is going on if you want to tweak the config. |
Ok, I'll change it to what you proposed and link to an alternative resource for |
I've got error by changing to config of @glenjamin: What I did:
I've got a blank page and error on console: I try to comment // 'webpack-dev-server/client?http://localhost:8080', first page is ok, but I didn't get Automatic browser refresh. Did I miss some thing? |
Any idea @glenjamin? Do you have working configuration to compare against? |
I'll try and dig one out - I haven't used this for a while as I've moved to using my |
Looks like the approach I describe is the same one |
I had the some error @idisblueflash and I fix it changing npm script from: |
on https://christianalfoni.github.io/react-webpack-cookbook/Automatic-browser-refresh.html
Instead of adding
http://localhost:8080/webpack-dev-server.js
to the HTML, you can addwebpack-dev-server/client?http://localhost:8080
to theentry
list.This also makes it easier to disable HMR changes in production builds.
The text was updated successfully, but these errors were encountered: