Cordova browser platform refresh

Is there a way that I do not re run "cordova run browser", but I just refresh the page after I make changes to my js code? It would be faster to just press F5 on the browser.

Thank you

Upvotes: 21

Views: 11814

Answers (1)

user3601435
user3601435

Reputation: 467

Cordova Browser-Sync Plugin make exactly this.

$ cordova plugin add cordova-plugin-browsersync
$ cordova run browser -- --live-reload

F5 will be refresh content after editing.

Upvotes: 20

Related Questions