Skip to content

Commit 448c020

Browse files
Extacyclydin
authored andcommitted
fix(@angular-devkit/build-angular): add "Failed to compile" message
Add missing "Failed to compile" message when the webpack build is not successful. This is useful for [background problem matchers](https://code.visualstudio.com/docs/editor/tasks#_background-watching-tasks). Previously, it was not possible to tell using a regular expression when the compiler has stopped when there was an error, as no message was printed. (cherry picked from commit 08fb32e)
1 parent 1e2efbc commit 448c020

File tree

1 file changed

+2
-0
lines changed
  • packages/angular_devkit/build_angular/src/builders/dev-server

1 file changed

+2
-0
lines changed

packages/angular_devkit/build_angular/src/builders/dev-server/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ export function serveWebpackBrowser(
279279

280280
if (buildEvent.success) {
281281
logger.info(`\n${colors.greenBright(colors.symbols.check)} Compiled successfully.`);
282+
} else {
283+
logger.info(`\n${colors.redBright(colors.symbols.cross)} Failed to compile.`);
282284
}
283285

284286
return { ...buildEvent, baseUrl: serverAddress } as DevServerBuilderOutput;

0 commit comments

Comments
 (0)