From ef5706ed5e7ef347280320a88b5604a279667184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wilski?= <12202969+triforcely@users.noreply.github.com> Date: Wed, 20 Dec 2023 22:33:34 +0100 Subject: [PATCH] fix: live reload deploys app when warnings are present #4807 (#5043) Co-authored-by: Michal Wilski --- packages/@ionic/cli/src/lib/project/react/serve.ts | 2 +- packages/@ionic/cli/src/lib/project/vue/serve.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@ionic/cli/src/lib/project/react/serve.ts b/packages/@ionic/cli/src/lib/project/react/serve.ts index cc3b697ee1..d085b50854 100644 --- a/packages/@ionic/cli/src/lib/project/react/serve.ts +++ b/packages/@ionic/cli/src/lib/project/react/serve.ts @@ -112,7 +112,7 @@ export class ReactServeCLI extends ServeCLI { const strippedLine = stripAnsi(line); - const compileMsgs = ['Compiled successfully', 'Compiled with warnings', 'Failed to compile']; + const compileMsgs = ['Compiled successfully', 'Compiled with', 'Failed to compile']; if (compileMsgs.some(msg => strippedLine.includes(msg))) { this.emit('ready'); return false; diff --git a/packages/@ionic/cli/src/lib/project/vue/serve.ts b/packages/@ionic/cli/src/lib/project/vue/serve.ts index b207117720..999fdda433 100644 --- a/packages/@ionic/cli/src/lib/project/vue/serve.ts +++ b/packages/@ionic/cli/src/lib/project/vue/serve.ts @@ -63,7 +63,7 @@ export class VueServeCLI extends ServeCLI { } const strippedLine = stripAnsi(line); - const compileMsgs = ['Compiled successfully', 'Compiled with warnings', 'Failed to compile']; + const compileMsgs = ['Compiled successfully', 'Compiled with', 'Failed to compile']; if (compileMsgs.some(msg => strippedLine.includes(msg))) { this.emit('ready'); return false;