@@ -10,7 +10,7 @@ var mime = require("mime");
10
10
module . exports = function ( compiler , options ) {
11
11
if ( ! options ) options = { } ;
12
12
if ( options . watchDelay === undefined ) options . watchDelay = 200 ;
13
- if ( ! options . stats ) options . stats = { } ;
13
+ if ( typeof options . stats === "undefined" ) options . stats = { } ;
14
14
if ( ! options . stats . context ) options . stats . context = process . cwd ( ) ;
15
15
16
16
// store our files in memory
@@ -27,15 +27,15 @@ module.exports = function(compiler, options) {
27
27
// check if still in valid state
28
28
if ( ! state ) return ;
29
29
// print webpack output
30
- var displayStats = ( ! options . quiet && ! options . minimalOutput ) ;
30
+ var displayStats = ( ! options . quiet && options . stats !== false ) ;
31
31
if ( displayStats &&
32
32
! ( stats . hasErrors ( ) || stats . hasWarnings ( ) ) &&
33
33
options . noInfo )
34
34
displayStats = false ;
35
35
if ( displayStats ) {
36
36
console . log ( stats . toString ( options . stats ) ) ;
37
37
}
38
- if ( ( ! options . noInfo && ! options . quiet ) || options . minimalOutput )
38
+ if ( ! options . noInfo && ! options . quiet )
39
39
console . info ( "webpack: bundle is now VALID." ) ;
40
40
41
41
// execute callback that are delayed
@@ -55,7 +55,7 @@ module.exports = function(compiler, options) {
55
55
56
56
// on compiling
57
57
function invalidPlugin ( ) {
58
- if ( state && ( ( ! options . noInfo && ! options . quiet ) || options . minimalOutput ) )
58
+ if ( state && ( ! options . noInfo && ! options . quiet ) )
59
59
console . info ( "webpack: bundle is now INVALID." ) ;
60
60
// We are now in invalid state
61
61
state = false ;
0 commit comments