Skip to content

Commit f37419f

Browse files
committed
fix(@angular/cli): show warnings on serve
The new function already correctly prints warnings/errors. Followup to #6989 Fix #7213
1 parent 35c10df commit f37419f

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

packages/@angular/cli/tasks/serve.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,8 @@ export default Task.extend({
215215
const server = new WebpackDevServer(webpackCompiler, webpackDevServerConfiguration);
216216
if (!serveTaskOptions.verbose) {
217217
webpackCompiler.plugin('done', (stats: any) => {
218-
const str = statsToString(stats.toJson(), statsConfig);
219-
if (stats.hasErrors()) {
220-
this.ui.writeError(str);
221-
} else if (stats.hasWarnings()) {
222-
this.ui.writeWarnLine(str);
223-
} else {
224-
this.ui.writeLine(str);
225-
}
218+
const str = statsToString(stats.toJson('verbose'), statsConfig);
219+
this.ui.writeLine(str);
226220
});
227221
}
228222

0 commit comments

Comments
 (0)