File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ var httpProxyMiddleware = require("http-proxy-middleware");
11
11
var serveIndex = require ( "serve-index" ) ;
12
12
var historyApiFallback = require ( "connect-history-api-fallback" ) ;
13
13
14
+ var clientStats = { errorDetails : false } ;
15
+
14
16
function Server ( compiler , options ) {
15
17
// Default options
16
18
if ( ! options ) options = { } ;
@@ -32,7 +34,7 @@ function Server(compiler, options) {
32
34
compiler . plugin ( "compile" , invalidPlugin ) ;
33
35
compiler . plugin ( "invalid" , invalidPlugin ) ;
34
36
compiler . plugin ( "done" , function ( stats ) {
35
- this . _sendStats ( this . sockets , stats . toJson ( ) ) ;
37
+ this . _sendStats ( this . sockets , stats . toJson ( clientStats ) ) ;
36
38
this . _stats = stats ;
37
39
} . bind ( this ) ) ;
38
40
@@ -389,7 +391,7 @@ Server.prototype.listen = function() {
389
391
if ( this . hot ) this . sockWrite ( [ conn ] , "hot" ) ;
390
392
391
393
if ( ! this . _stats ) return ;
392
- this . _sendStats ( [ conn ] , this . _stats . toJson ( ) , true ) ;
394
+ this . _sendStats ( [ conn ] , this . _stats . toJson ( clientStats ) , true ) ;
393
395
} . bind ( this ) ) ;
394
396
395
397
sockServer . installHandlers ( this . listeningApp , {
You can’t perform that action at this time.
0 commit comments