Search code examples
cordovaionic-frameworkbrowserionic3livereload

ionic cordova run browser --livereload cordova platform not working


I'm trying to run ionic cordova run browser --livereload on localhost:8100.

the platform cordova not working and if i run it on localhost:8000 the --livereload will not work

exports.ANDROID_PLATFORM_PATHS = [
    path.join('platforms', 'android', 'assets', 'www'),
    path.join('platforms', 'android', 'app', 'src', 'main', 'assets', 'www')
];

Solution

  • The --livereload flag is not supported when you run ionic cordova run browser.

    More information here: Issue 2312 - Ionic-team on github

    If you don't need cordova emulation to test in your browser, you can use the following command that has default livereload support (but no cordova emulation):

    ionic serve