Skip to content

Commit 3511543

Browse files
committed
Merge branch 'prevent-reload-on-errors'
2 parents beaef81 + 65aa7c6 commit 3511543

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ See [**the documentation**](http://webpack.github.io/docs/webpack-dev-server.htm
3232

3333
We appreciate all help! Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to help.
3434

35+
## Maintainer
36+
37+
This project is maintained by [**Kees Kluskens**](https://github.com/spacek33z/).
38+
3539
## Inspiration
3640

3741
This project is heavily inspired by [peerigon/nof5](https://github.com/peerigon/nof5).

client/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,14 @@ var onSocketMsg = {
6868
self.location.reload();
6969
},
7070
warnings: function(warnings) {
71-
log("info", "[WDS] Warnings while compiling.");
71+
log("info", "[WDS] Warnings while compiling. Reload prevented.");
7272
for(var i = 0; i < warnings.length; i++)
7373
console.warn(stripAnsi(warnings[i]));
74-
if(initial) return initial = false;
75-
reloadApp();
7674
},
7775
errors: function(errors) {
78-
log("info", "[WDS] Errors while compiling.");
76+
log("info", "[WDS] Errors while compiling. Reload prevented.");
7977
for(var i = 0; i < errors.length; i++)
8078
console.error(stripAnsi(errors[i]));
81-
if(initial) return initial = false;
82-
reloadApp();
8379
},
8480
close: function() {
8581
log("error", "[WDS] Disconnected!");

0 commit comments

Comments
 (0)