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

后端 未结 6 659
北恋
北恋 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 23:00

    If you are using phonegap serve and you are seeing the JavaScript prompts, you need to add a snippet to prevent the app from loading the Native-level JavaScript code.

    replace with

    
    

    Note that this works for both cordova.js and phonegap.js (They should be the same file)

提交回复
热议问题