webpackbar
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="3.0.2"></a> | ||
## [3.0.2](https://github.com/nuxt/webpackbar/compare/v3.0.1...v3.0.2) (2018-11-08) | ||
### Bug Fixes | ||
* **fancy:** resume consola befor we die! ([ea1c6a8](https://github.com/nuxt/webpackbar/commit/ea1c6a8)) | ||
* **stats:** report errors before we die ([53aa6bb](https://github.com/nuxt/webpackbar/commit/53aa6bb)) | ||
<a name="3.0.1"></a> | ||
@@ -7,0 +18,0 @@ ## [3.0.1](https://github.com/nuxt/webpackbar/compare/v3.0.0...v3.0.1) (2018-11-08) |
@@ -44,2 +44,6 @@ 'use strict'; | ||
this._renderStates(context.statesArray); | ||
if (context.hasErrors) { | ||
_consola2.default.resume(); | ||
} | ||
} | ||
@@ -46,0 +50,0 @@ |
@@ -19,3 +19,9 @@ 'use strict'; | ||
done(context, { stats }) { | ||
context.state.statsString = stats.toString(this.options); | ||
const str = stats.toString(this.options); | ||
if (context.hasErrors) { | ||
process.stderr.write('\n' + str + '\n'); | ||
} else { | ||
context.state.statsString = str; | ||
} | ||
} | ||
@@ -25,8 +31,8 @@ | ||
let str = ''; | ||
context.statesArray.forEach(state => { | ||
str += '\n' + state.statsString + '\n'; | ||
delete state.statsString; | ||
}); | ||
for (const state in context.statesArray) { | ||
if (state.statsString) { | ||
str += '\n' + state.statsString + '\n'; | ||
delete state.statsString; | ||
} | ||
} | ||
process.stderr.write(str); | ||
@@ -33,0 +39,0 @@ } |
{ | ||
"name": "webpackbar", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Elegant ProgressBar and Profiler for Webpack", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
41187
656