Questions tagged [gulp-browser-sync]
148 questions
1
vote
1 answer
Laravel "gulp watch" compiles assets automatically but doesn't reload the browser
I am running gulp on a laravel 5.3 and it seems that gulp watch runs and sync via browsersync only once. Whenever I made changes on my scripts, assets are being compiled automatically but the browser doesn't reload.
Here's my gulpfile.js
const…

basagabi
- 4,900
- 6
- 38
- 84
1
vote
0 answers
browserSync.reload() hangs after reloading browser
I've created a watch for various file types, and all work perfectly except for html. I instead of using stream I have to use reload to ensure that the changes show. However, when I call browserSync.reload it reloads the browser but hangs. The…

Smeegs
- 9,151
- 5
- 42
- 78
1
vote
1 answer
browser-sync not working with single page application
I have a single page application that does not use hash URLs I want to use the history API. I am using the middleware historyApiFallback() in browserSync server options. However, this is only working for one level deep URLs:…

Dan
- 115
- 1
- 10
1
vote
2 answers
BrowserSync.stream() not working, browserSync.reload() throws error
This is my Gulp file:
var gulp = require('gulp'),
watch = require('gulp-watch'),
postcss = require('gulp-postcss'),
autoprefixer = require('autoprefixer'),
simplevars = require('postcss-simple-vars'),
nested =…

AffectionateOrange
- 124
- 2
- 14
1
vote
1 answer
Gulp sass and browsersync reloading browser instead of injecting css
I am using the latest gulp sass and browsersync. Upon editing and saving a scss file, it compiles and I see the "injecting styles.css" BUT the browser also reloads.
Not sure when this changes, but it used to just inject the new css file without…

Steve
- 14,401
- 35
- 125
- 230
1
vote
0 answers
How to make gulp.js work on a Ubuntu Trusty vagrant box (error caused by xdg-open)
Background
I have a gulp.js build system written by another developer; as for myself, I have absolutely no background with gulp. In order to avoid cluttering my system with gulp, I tried to install and run gulp in a Vagrant VM (Ubuntu Trusty 64).…

Tobias Geisler
- 679
- 7
- 13
1
vote
1 answer
Gulp BrowserSync not working with SCSS
My gulp setup with browsersync seems to have a problem with detecting changes for SCSS files. It works perfectly fine for SLIM with reload and detection. There's no error with the gulp. The only problem is the browsersync fail to detect changes in…

Sean Lin
- 33
- 4
1
vote
1 answer
Using browsersync with gulp/nodemon
I'm trying to get Browsersync (version 2.12.5) to work with gulp-nodemon/watching files. These are my gulp tasks. I can't seem to get any of my files to update/reload the browser.
var $ = require('gulp-load-plugins')();
var browserSync =…

cusejuice
- 10,285
- 26
- 90
- 145
1
vote
2 answers
Gulp Concat + Browserync restarting
I'm using gulp concat and browserync. When I run gulp, it starts browserync and concatenates and reloads all js files found in modules. The problem is that it only does the concatenation of js files once, so I need to stop running gulp and run it…

M1lls
- 545
- 3
- 11
- 33
0
votes
1 answer
error 404 and Refused to execute inline script because it violates the following Content Security Policy directive, utilizing browser sync gulp plugin
I am setting up the gulp for my landing page and have current problem using browser sync plugin:
errors
I have looked through many articles on this topic but have not found a solution
src/index.html:
…

Serhii Yunnikov
- 3
- 1
0
votes
0 answers
Can you broadcast an external web page on Browsersync or does it have to be a site from within your own codebase?
I think I have a basic misunderstanding of how Browsersync works. Forgive my question. I have read the documentation and the issues on GitHub and here.
I do understand that it works on two levels:
The first level is when you change your code it…

Roaky Wood
- 21
- 2
0
votes
0 answers
Gulp + BrowserSync spins up localhost:3000 but never fully loads/connects
Whenever I run the Gulp command to spin up the local server to localhost3000, it appears to run in the terminal but it never fully connects in the browser. The loading wheel just keeps spinning endlessly. Below is the Gulp command that is supposed…
0
votes
1 answer
Violation Avoid using document.write(). Brovser-sync issue
Had a message in console that says to avoid using document.write(). how it looks in html
Its took a while to find how to fix it or even find where problem is,
couse have this part of code: