ionic run browser --livereload not working

Viewed 17033

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

6 Answers

First off, should anyone need this answer, the command has been renamed in the later version to

ionic cordova run browser

Second, The --livereload flag is not supported when you run this command. this issue explains more

Try This

ionic cordova run browser --livereload  --consolelogs --serverlogs
"serve": "npx ionic serve --cordova --platform browser"
Related