Skip to content

Commit

Permalink
feat(angular): support angulars vite dev server
Browse files Browse the repository at this point in the history
Modifies how the angular emits that the dev server is ready by including
the additional output from the CLI
  • Loading branch information
mhartington committed Nov 17, 2023
1 parent d09653d commit 409a407
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/@ionic/cli/src/lib/project/angular/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@ export class AngularServeCLI extends ServeCLI<AngularServeOptions> {
}

const strippedLine = stripAnsi(line);

if (strippedLine.includes('Development Server is listening')) {
const compileMsgs = [
'Development Server is listening',
'Watching for file changes'
]
if (compileMsgs.some((msg) => strippedLine.includes(msg))) {
this.emit('ready');
return false;
}
Expand Down

0 comments on commit 409a407

Please sign in to comment.