-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Browser Sync over Livereload #1955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Any particular benchmark or experience you can re-tell to back up the performance claim? Not that I don't think browser sync is fast, just that I don't know for certain that livereload is particularly slower or faster than browser sync. What has however intrigued me the most about browser sync are the features you mentioned. In particular the fast cross-device testing it enables when you control several browsers at once. So definitely positively inclined towards switching to browser sync. |
I don't have formal benchmarks but from experience I can say that browser sync has been way faster than livereload for me in terms of hot reloading whenever I have pressed |
Will probably not look into replacing live-reload with browser-sync until after the Angular 2 migration along with Angular 2 features like Angular Universal are in place. You are however welcome to submit a PR to the webpack branch now or canary branch once #1971 has been merged into canary (planned for this week). Would entail changing here: https://github.com/angular-fullstack/generator-angular-fullstack/blob/webpack/templates/app/server/config/express.js#L89-L142 |
Cheers. Will look into it. |
after using BrowserSync this week, I've come to like it very much. Here's my snippet /w
and here's the config I've been working with.
and is then used with ts, templates, sass, and html tasks.
|
Made another solution to adapt it to the webpack solution we've got working here. So will submit a PR soonish. Currently not using browser-sync-spa or history-fallback-api, just doing a proxy on to the server which in turn serves all the files. |
PR merged into canary, i.e. version 4 of the generator. See PR #2073. For any improvements such as changing the config, port or something please open up a new issue. |
Browser sync is a better alternative to live reloading webpages over Livereload. There are quite a few features that browser sync has over LR, but most importantly, it's fast! I have replaced livereload with browser sync for all projects since last year.
The text was updated successfully, but these errors were encountered: