Skip to content

Commit 227bf2e

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 008094b commit 227bf2e

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

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

370370
if (buildEvent.success) {
371371
logger.info(`\n${colors.greenBright(colors.symbols.check)} Compiled successfully.`);
372+
} else {
373+
logger.info(`\n${colors.redBright(colors.symbols.cross)} Failed to compile.`);
372374
}
373375

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

0 commit comments

Comments
 (0)