i was trying to use live reload on my ionic 2 application. so i found this command
ionic run browser --live-reload
is not working as expected and while making code changes i am receiving console messages
[16:12:47] build started ...
[16:12:47] transpile update started ...
[16:12:47] transpile update finished in 46 ms
[16:12:47] deeplinks update started ...
[16:12:47] deeplinks update finished in 248 ms
[16:12:47] webpack update started ...
but the page isn't reloading
Using this command browser will be reloaded automatically.
If you want to run application with different platform in browser you can use this command :
This both command will reload page automatically on code change
First off, should anyone need this answer, the command has been renamed in the later version to
Second, The --livereload flag is not supported when you run this command. this issue explains more
i found the solution on the github page
and run
When you run the command
ionic cordova run browser --livereload
you will see something like this in CLI:Just open http://192.168.0.51:8100 or http://localhost:8100 and your live reload will work on that address. Your browser might have opened in http://localhost:8000 instead of 8100