Ionic 2 Visual Studio Template - Live reload not working

I downloaded and installed the latest Visual Studio Ionic 2 templates for Visual Studio Tools for Apache Cordova. I am using Visual Studio 2017 Professional.

To my disappointment, I found that the Cordoba live reboot function does not work at all. When I change the HTML, the only way for Simulate Cordova to reflect these changes is to stop debugging and redeploy the project, which takes a considerable amount of time and makes the development workflow a real pain.

Another problem arises whenever more than one Ionic project is carried out. I found that since Ionic uses the same port for deployment, then when starting one of the projects, the running application will be confused as to which application I am requesting and often show another application instead of the one I want.

Any ideas?

+6
source share
2 answers

You need to manually configure the "watch" task, which will be launched when the project is opened. Add the following field:

"ProjectOpened": [ "watch" ]

to the "-vs-binding" object in your package.json.

, ( ), . , Task Runner Explorer, ( , ).

.

+4

@scale_tones .

, . , , , , , .

. :

1) watcher.js Github

2) - watcher.js . :

C:\ProgramData\Microsoft\VisualStudio\MDA\a43fc8f0\- -6.3.1\ node_modules\Cordova-\SRC\\

watcher.js Github. , .

+3

Source: https://habr.com/ru/post/1017235/


All Articles