webpack-dev-middleware
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -35,8 +35,16 @@ /* | ||
// print webpack output | ||
console.log(formatOutput(stats, { | ||
context: opt.context || context || process.cwd(), | ||
colors: true, | ||
verbose: opt.verbose | ||
})); | ||
console.info("webpack: bundle is now VALID."); | ||
var displayStats = !opt.middleware || !opt.middleware.quiet; | ||
if(displayStats && | ||
!(stats.errors && stats.errors.length > 0 || stats.warnings && stats.warnings.length > 0) && | ||
opt.middleware && opt.middleware.noInfo) | ||
displayStats = false; | ||
if(displayStats) { | ||
console.log(formatOutput(stats, { | ||
context: opt.context || context || process.cwd(), | ||
colors: true, | ||
verbose: opt.verbose | ||
})); | ||
} | ||
if(!opt.middleware || (!opt.middleware.noInfo && !opt.middleware.quiet)) | ||
console.info("webpack: bundle is now VALID."); | ||
@@ -54,3 +62,3 @@ // execute callback that are delayed | ||
opt.events.on("bundle-invalid", function() { | ||
if(state) | ||
if(state && (!opt.middleware || !opt.middleware.noInfo)) | ||
console.info("webpack: bundle is now invalid."); | ||
@@ -57,0 +65,0 @@ // We are now in invalid state |
{ | ||
"name": "webpack-dev-middleware", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Offers a dev middleware for webpack, which arguments a live bundle to a directory", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5467
5
97