Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova browser platform refresh

Tags:

cordova

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

like image 857
JoomlaEvolved Development Avatar asked Nov 03 '15 07:11

JoomlaEvolved Development


People also ask

What browser does cordova use?

Actually it is Chrome, but a different version from the Chrome App.

How do I add a browser platform to cordova?

Add a platform After creating a Cordova project, navigate to the project directory. From the project directory, you need to add a platform for which you want to build your app. To add a platform, type cordova platform add <platform name> . For a complete list of platforms you can add, run cordova platform .

What does cordova Clean do?

cordova clean command Cleans the build artifacts for all the platforms, or the specified platform by running platform-specific build cleanup.


Video Answer


1 Answers

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.

like image 197
user3601435 Avatar answered Nov 11 '22 22:11

user3601435