Skip to content

Commit 35238a1

Browse files
alan-agius4vikerman
authored andcommitted
fix(builders): log message when compilation is ended successfully
1 parent bd6cde1 commit 35238a1

File tree

1 file changed

+8
-2
lines changed
  • modules/builders/src/ssr-dev-server

1 file changed

+8
-2
lines changed

modules/builders/src/ssr-dev-server/index.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,21 @@ export function execute(
103103
if (!builderOutput.success) {
104104
return of(builderOutput);
105105
}
106+
107+
let result: Observable<BuilderOutput> | undefined;
106108
if (!bsInstance) {
107-
return from(startBrowserSync(nodeServerPort, options, context.logger)).pipe(
109+
result = from(startBrowserSync(nodeServerPort, options, context.logger)).pipe(
108110
tap(instance => bsInstance = instance),
109111
mapTo(builderOutput)
110112
);
111113
} else {
112114
bsInstance.reload();
113-
return of(builderOutput);
115+
result = of(builderOutput);
114116
}
117+
118+
context.logger.info('\nCompiled successfully.');
119+
120+
return result;
115121
}),
116122
catchError(error => of({
117123
success: false,

0 commit comments

Comments
 (0)