nparashuram / cordova-plugin-browsersync

BrowserSync Plugin for Cordova
110 stars 69 forks source link

Option '--livereload' not recognized (ignoring). #2

Closed TrySpace closed 9 years ago

TrySpace commented 9 years ago

I get:

 Option '--livereload' not recognized (ignoring).

When adding it as a plugin, (following the 2 steps) I also tried the the project hook but its not executing after prepare either.

I would like to try the third option, but there's no examples yet. Should I run changeHost.js in my main script or somewhere else? And do I need the browserSyncServer.js perse?

It would be great if I could just point it to my already running gulp watch which runs browsersync, it just doesn't have access to the cordova.js and its plugins. If somehow I could automate the prepare process and reload the res/www directory...

axemclion commented 9 years ago

It is actually -- --live-reload. Note the double -- --. This is required sine just having a -- is not passed by Cordova down to the plugins.

I am working on a blog post with examples to make the third option more explicit. I am guessing that this option could be the most popular.

axemclion commented 9 years ago

@TrySpace Do you have an example of your gulp script with browserwatch ? I could build my example from that.

axemclion commented 9 years ago

Closing due to lack of response. Please reopen this issue if needed.