Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 665 forks source link

gulp serve without live-reload? #742

Closed codeofsumit closed 9 years ago

codeofsumit commented 9 years ago

Sometimes we just want to edit lots of little things in our application, save each one and reload when we want to take a look at it. Especially true, when a reload fetches multiple APIs and needs 15 seconds to load.

So how can we gulp serve with live-reload disabled?

Swiip commented 9 years ago

I don't see a really easy way. The BS configuration UI doesn't allow to stop "live reloading", it could be a feature to ask them.

To stop livereload, the only way I see is to comment browserSync.reload calls in the gulp scripts.

codeofsumit commented 9 years ago

Ok thank you!

codeofsumit commented 9 years ago

Turns out, it is possible:

image

If you click on "disable all", auto-reload stops. Even if you re-enable each options by hand, it'll not auto-reload until you click "enable all" again.

No idea if that is a bug or just bad UI. In any case, I opened an issue about it here. https://github.com/BrowserSync/browser-sync/issues/802

shakyShane commented 9 years ago

You can also set codeSync: false in the Browsersync config