Skip to content

Commit 9960047

Browse files
committed
fix(capacitor): switch off livereload for --no-build
1 parent b7738f5 commit 9960047

File tree

1 file changed

+5
-0
lines changed
  • packages/ionic/src/commands/capacitor

1 file changed

+5
-0
lines changed

packages/ionic/src/commands/capacitor/run.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ ${chalk.cyan('[1]')}: ${chalk.bold('https://ionicframework.com/docs/developer-re
106106
options['livereload'] = true;
107107
}
108108

109+
if (!options['build'] && options['livereload']) {
110+
this.env.log.warn(`No livereload with ${chalk.green('--no-build')}.`);
111+
options['livereload'] = false;
112+
}
113+
109114
await this.checkForPlatformInstallation(inputs[0]);
110115
}
111116

0 commit comments

Comments
 (0)