Skip to content

Commit

Permalink
feat(angular): support angulars vite dev server (#5064)
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

Co-authored-by: Sean Perkins <[email protected]>
  • Loading branch information
mhartington and sean-perkins committed Jan 2, 2024
1 parent 2e3a5de commit 8a94434
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 8a94434

Please sign in to comment.