ionic run browser --livereload not working
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
i found the solution on the github page
include a script in the package.json file
"browser": "ionic-app-scripts serve --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build"
npm run browser
ionic cordova run browser --livereload not working with cordova , When i run command "ionic cordova run browser --livereload" then app starts, but livereload not work and i have many cordova_not_available to reproduce run ionic run browser --livereload modify a html or ts file expected the app should change. Refreshing the browser you should see the changes instead the console shows that the file changes is being copied by the changes are
When you run the command
ionic cordova run browser --livereload you will see something like this in CLI:
[19:39:00] dev server running: http://localhost:8100/ [INFO] Development server running Local: http://localhost:8100 External: http://192.168.0.51:8100
bug v2: "ionic run browser --livereload" is not refreshing the app after , lcofresi commented on May 7, 2017. Having the same issue ('ionic run browser --livereload' not reloading on template change):. @dwieeb it's not working for us on 4.1.2. We were able to run the app on 3.20 with: npm run ionic:build:before; ionic-app-scripts serve --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build Unable to run with ionic serve --cordova --platform browser though It servers the browser page
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
Live Reload, With ionic serve , Live Reload refers to simply reloading the browser when changes and it will refer to your computer when loaded in the Web View, not the device. by using ionic serve and the --livereload-url option of ionic cordova run . Description: Livereload does not load anything, it stays on white screen. Steps to Reproduce: run "ionic serve" and select the app from the app "IonicDevApp" of Android My ionic info: cli packages: (/home/gabo/Expanse Software/client app
Using this command browser will be reloaded automatically.
If you want to run application with different platform in browser you can use this command :
ionic serve -l
This both command will reload page automatically on code change
Livereload not working with browser platform - ionic-v3, I'm running the following command to develop: ionic cordova run browser --livereload. Everything starts fine. And, when I save a changed Ionic serve stopped working for me yesterday. I'm not sure if it stopped working when I updated the cli but I did notice the added ionic cordova run yesterday.. The issue is that when I run ionic serve it loads the same build from two days ago regardless of changes I make or builds that I run.
Developers - bug: ionic serve, bug: ionic serve - live reload is not working. Platforms : android 6.2.3 browser Ionic Framework : ionic-angular Running ionic serve --lab. bug: ionic serve - live reload is not working browser 4.1.0 Ionic Framework : ionic-angular 3.6.1 command for the first time. then you will not need to run
ionic run browser --livereload not working, 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 I run my ionic app by using below command on a native android device. ionic cordova run android –device -l My app compiled and run just perfectly. But when ever i change some code it doesn…
ionic cordova run browser --livereload not working with cordova plugin, Ask questionsionic cordova run browser --livereload not working with cordova plugin. Description: When i run command "ionic cordova run browser" then all Chapter 4: Testing your app. Now, since we actually have something to look at, we need to talk about the testing and development process for our app. There are four ways to test your app as you develop: in a desktop WebKit browser, in the iOS or Android simulator, in a mobile browser on your phone, or as a native app on the phone.