Skip to content

Commit

Permalink
feat(webpack): Cleaner output for some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Sep 7, 2016
1 parent 2c16958 commit 578007e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/webpack-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function onDone(imports, flags, filename, ngrokUrl, stats) {
return (0, _webpackMessages.devServerCompiledSuccessfullyMsg)(imports, flags, filename, ngrokUrl);
}

var json = stats.toJson();
var json = stats.toJson({}, true);
var formattedWarnings = json.warnings.map(function (message) {
return 'Warning in ' + (0, _webpackErrorHelpers.formatMessage)(message);
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib/webpack-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function onDone(imports, flags, filename, ngrokUrl, stats) {
return devServerCompiledSuccessfullyMsg(imports, flags, filename, ngrokUrl);
}

const json = stats.toJson();
const json = stats.toJson({}, true);
const formattedWarnings = json.warnings.map(message => 'Warning in ' + formatMessage(message));
let formattedErrors = json.errors.map(message => 'Error in ' + formatMessage(message));

Expand Down

0 comments on commit 578007e

Please sign in to comment.