How to add Live Reload when using the command cordova serve?

后端 未结 6 723
北恋
北恋 2021-02-01 22:17

I am using this command to open up my app in the browser: cordova serve but it does not refresh itself when I update my code. How can I do that?

I have trie

6条回答
  •  无人共我
    2021-02-01 22:42

    You can also try cordova-plugin-browsersync-gen2. It's based on old abandoned plugin, fully compatible with latest versions of npm and Cordova.

    Also, this version adds missing live-reload support for the following:

    cordova run (for each platform individually)
    cordova serve
    

提交回复
热议问题