-
Notifications
You must be signed in to change notification settings - Fork 712
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
Using webpack-dev-middleware
instead of webpack-dev-server
directly
#2034
Conversation
a7c6de7
to
7539d76
Compare
7539d76
to
ec79c1e
Compare
@davkal I think it should be ready now. I removed |
Bundling and hot-reload works. Although I noticed the following:
Does this happen in master too? Is there something that can be done about it? |
Also,
|
This PR could be helpful for node crashing: Graylog2/graylog2-server#2433 |
@davkal I'm afraid I didn't manage to fix any of the problems you had :/
Yes it does (see this comment) - for me it was the case even before merging #2017, although that might have been due to a Chrome DevTools bug.
I gave it a couple of hours of research, but haven't come up with any good solutions. By all chance it is a problem with source maps setup which gets fixed if we switch back to using I wonder how much this source maps issue is platform dependent and whether we'd get exactly the same issues on Safari. @jpellizzari, maybe you could take a quick look at this and see if you could find a fix, since you already added source maps to this project successfully once :)
I really couldn't reproduce the crash you had even after multiple file updates:
However, if it's related to the PR you referenced, it is most likely coming from |
@fbarl I am able to reproduce the issue that @davkal reported, even with the transpiled code. Unfortunately, I don't have any bright ideas on how to fix it; the issue link you provided is pretty convincing that this is a bug with chrome devtools. One workaround (in addition to alt-r, like the chromium issue suggests) is using a When I changed the If so, my vote is that we go to |
Thanks for looking into it @jpellizzari! Here's my feedback:
I would have also concluded so if I didn't have the same problem on Firefox :/ That's why I was curious to see whether the same source maps reloading problem happens on Safari with our current configuration.
If we decide to abandon using breakpoints in combination with hot reloading, I agree using @davkal what are your thoughts on this? p.s. @jpellizzari, I'm not able to reproduce your issue with variables being renamed. So the source code gets mapped back to the original for you, but you're not able to access the original variables from the console, when paused on a |
keep original code, quite fast on rebuilds
Also switched from
react-hot-loader
towebpack-hot-middleware