From 8a94434a413c1b60b0e88904064edfe7a98206ab Mon Sep 17 00:00:00 2001 From: Mike Hartington Date: Tue, 2 Jan 2024 12:54:27 -0500 Subject: [PATCH] feat(angular): support angulars vite dev server (#5064) Modifies how the angular emits that the dev server is ready by including the additional output from the CLI Co-authored-by: Sean Perkins <13732623+sean-perkins@users.noreply.github.com> --- packages/@ionic/cli/src/lib/project/angular/serve.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/@ionic/cli/src/lib/project/angular/serve.ts b/packages/@ionic/cli/src/lib/project/angular/serve.ts index 444f1aafd..a306d0484 100644 --- a/packages/@ionic/cli/src/lib/project/angular/serve.ts +++ b/packages/@ionic/cli/src/lib/project/angular/serve.ts @@ -173,8 +173,11 @@ export class AngularServeCLI extends ServeCLI { } 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; }