Skip to content

Commit

Permalink
fix: live reload deploys app when warnings are present #4807 (#5043)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Wilski <[email protected]>
  • Loading branch information
triforcely and Michal Wilski authored Dec 20, 2023
1 parent 05d64e9 commit ef5706e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@ionic/cli/src/lib/project/react/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class ReactServeCLI extends ServeCLI<ReactServeOptions> {

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;
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli/src/lib/project/vue/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class VueServeCLI extends ServeCLI<VueServeOptions> {
}

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;
Expand Down

0 comments on commit ef5706e

Please sign in to comment.