Questions tagged [gulp-browser-sync]
148 questions
3
votes
2 answers
Visual Studio 2015 tells me that dependencies are not met although one is not for Windows
I use Visual Studio 2015 with gulp via npm.
I installed the package browser-sync which relies on chokidar.fsevents. As I understand this dependency is only needed on MacOSX so installation fails with this error:
npm WARN notsup Not compatible with…

Oliver Kötter
- 1,006
- 11
- 29
3
votes
0 answers
Can't use gulp (with gulp-connect-php and gulp-browser-sync) with multiple projects
I've recently started using gulp and have a nice workflow but when I added the gulpfile to a new project, every time I run gulp from the original project directory, it serves the newest project and I have no idea what I've done.
This should be the…

martincarlin87
- 10,848
- 24
- 98
- 145
3
votes
2 answers
HTML Reloading using BrowserSync in Gulp
I've tried several different things in my gulpfile.js to get HTML automatic reloading to work with BrowserSync (not LiveReload) in Gulp, but none have worked. I thought this last try would do the trick but it isn't working, either. What am I…

Jordan Bowman
- 567
- 1
- 5
- 11
2
votes
2 answers
Modify gulpfile.js (gulp 4.0)
This is the old configuration file.
Current gulp version is 4.0
How to modify this configuration file through gulp.series(), gulp.parallel() ?
I see all the translated tutorials, don't very understanding.
How to modify this configuration file (gulp…

Phoenix
- 33
- 1
- 10
2
votes
1 answer
Gulp 4 browsersync does not refresh when changing .less file
Link to Github repo: https://github.com/Greatshock/Netcracker-Study-Course/blob/f9bfb413929feec51064a78abf1450845f867186
I have a file named base.less, where all the styles are @import-ed. When I run the gulpfile (npm run dev), everything is being…

Nikita Marinosyan
- 747
- 2
- 8
- 26
2
votes
0 answers
BrowserSync only works sometimes
Content
I develop websites with the Roots stack which utilizes Gulp + BrowserSync.
When I execute gulp watch, initially, it opens up my browser to https://localhost:300X and I see the site I'm working on - as expected.
The Goal
When I save CSS…

Spencer Hill
- 1,043
- 2
- 15
- 38
2
votes
0 answers
BrowserSync error: "You tried to start BrowserSync twice"
This script works and refreshes my page, and runs all the tasks I have set up, but it gives me "You tried to start BrowserSync twice" in my terminal every time it runs.
As far as I've researched, the cause should be the browserSync.reload I've…

CALEBUNGA
- 29
- 3
2
votes
1 answer
Gulp 'watch' not picking up changes after moving to Gulp 4 with BrowserSync
Just migrated over to Gulp 4 from Gulp 3.9.1 and whilst everything is working fine when I run gulp and it compiles everything fine and I can start the watch command fine so it appears like it's watching for changes, whenever a change happens it…

Brett
- 19,449
- 54
- 157
- 290
2
votes
1 answer
Gulp 4 browserSync in parallel with Pug and Parceljs Tasks in series
So basically what I'm trying to do is to make the browser refresh whenever there is a change in the files using browserSync, compiles Pug templates, then Parceljs does the bundling. And Gulp is to watch for changes.
The overall objective is a static…

Seif Sgayer
- 268
- 2
- 13
2
votes
1 answer
Browsersync Proxy Site Inject CSS
I'm having trouble understanding Browsersync serveStatic while pointed to a proxy URL. From my reading it seems that I should be able to inject CSS into the proxied website. In practice though I can't seem to get it to work. I have used rewriteRules…

Sean
- 313
- 1
- 17
2
votes
1 answer
Can I get the browsersync proxy to not update a particular URL?
Details:
I create virtual hosts for development like http://project.client.dev and then use browsersync for live reloading and whatnot, which creates a proxy at http://localhost:3000. This causes all URLs on the page to be written to…

Tomas Mulder
- 2,207
- 2
- 16
- 18
2
votes
1 answer
Browsersync stream not working
Browsersync stream is not working for me.
I've copied example from official documentation and it won't working. Reloading for html and js files working fine. Only sass streaming wouldn't work. I've read all the issues on github and can't find an…

ByteBrawler0
- 49
- 3
- 10
2
votes
1 answer
echarts legend.itemGap only works on gulp browser-sync
I want to reduce the gap between elements in my legend. I am using browser-sync and the time I'm using it it works but then I close browser-sync and open the same webapp and it doesn't seem to work.
This is my graph using browser-sync
And this is…

BRJ
- 155
- 2
- 15
2
votes
0 answers
Gulp browsersync gets stuck reloading browser
I am trying to streamline my workflow and include templating. I installed Nunjucks and tried to set it up so whenever I save a change to a template file gulp watch will fire the nunjucks function and refresh my browser.(firefoxdeveloperedition)
It…

Jon Jaszek
- 21
- 3
2
votes
1 answer
Browser Sync proxy not working
I'm using Gulp with Browser Sync and XAMPP to work on a Wordpress website I'm building.
Here's my Gulp setup:
var gulp = require('gulp');
var sass = require('gulp-sass');
var gulpif = require('gulp-if');
var useref = require('gulp-useref');
var…

Elisabeta
- 21
- 1
- 2