-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[email protected] keeps reloading page in a loop [BUG] #760
Comments
Does this also happen with This issue looks a lot like webpack/webpack#2320, but it could also be related to webpack/watchpack#25. |
For #2320, it seems unlikely the output there is very different to what I get and mine only occurs on an hmr rebundle not the initial build. Also I dont have a postcss loader or a extract text plugin. In regards to #25 I might be wrong about this, but I don't think its related either as my watcher loops indefinitely not for a fixed amount of time. As for the webpack --watch what is the command I should use there (i am not used to running webpack in watch mode) My current webpack-dev-server is running on: I tried: Its also worth noting, this issue only started occuring when I migrated to webpack2 |
I'm basically trying to figure out if this issue should live here, in the dev-server repo, or in the main webpack repo. dev-server does very little (almost nothing even) in regards to compiling things. It only sends the hot updates it gets from webpack to the browser. The script handling this update in the browser also lives in the main webpack repo.
Can you try what happens without using |
Thanks {multistep:false} in the hotmodule replacement plugin seems to have solved it. Although it still rebundles node_modules/moment/locale whenever there is something to bundle, weird. |
Okay, I'm going to close this since this isn't related to webpack-dev-server. |
Just for anyone who comes along to this page and has the same problem, I found one thing that helped in my situation: go to webpack.mix.js It should have:
add: to end up with:
This solved it for me. Hopefully, it helps someone along the line. Thanks ;) |
I am using webpack and webpack-dev-server @2.2.0
When i start up webpack devserver with command:
./node_modules/.bin/webpack-dev-server --content-base public --inline --hot
All works well and I can load up the page. However, as soon as a make a code change and the hmr kicks in, it gets stuck in a loop and keeps firing the hmr over and over again and keeps reloading the web page over and over again as a result.
The strange part is it seems to be rebundling a locale folder for the moment.js library instead of the file I actually worked on.
My setup:
Mac OS X el Capitan
bundling output from webpack-dev-server on any file change (it keeps repeating with different hashes each time):
package.json:
.babelrc:
webpack.config.js
The text was updated successfully, but these errors were encountered: