browser-sync


Browser-sync writes in console «Reloading Browsers …», but update is not happening. Why?


gulpfile.js
var gulp = require('gulp')
var jade = require('gulp-jade')
var browserSync = require('browser-sync').create()
gulp.task('jade', function(){
gulp.src('app/shit*/*.jade', {base: 'app'})
.pipe(jade())
.pipe(gulp.dest('build'))
})
gulp.task('watch', function() {
gulp.watch('app/shit*/*.jade', ['jade'])
})
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: "build"
}
})
gulp.watch("build/**/*.html", browserSync.reload)
gulp.watch("build/**/*.css", browserSync.reload)
})
gulp.task('default', ['watch', 'browser-sync'])
After saving the file, Console gives «Reloading Browsers ...», but in fact the browser does not refresh.
When opening the app in the browser, do you see the legend "Connected to BrowserSync"? otherwise the app wont reload.
Check the deployed app and browserSync are both working in the same port (by default 3000)

Related Links

Is it safe to include localhost into your connect-src for CSP?
Quit Browser-sync from terminal
lite-serverbs-config.js: middleware and array of folders
Make BrowserSync use the real https URL
Can we use browser sync on external url
How to replace .html with forward slash in BrowserSync?
Error during instillation of browser sync
When using browser-sync,why is the browser saying cannot get, while everything seems fine
How to sync the actions performed on webpage using Browsersync?
lite-server, BrowserSync: setting other URL path than /
Gulp and Browsersync injecting CSS but causing a full reload
Browser-sync - serve “node_modules” out of “src” directory
[browser-sync]browser-sync proxy can't connect to Rails Application
Browserstack not serving index.html by default
whatever i do i can't access the external URL for the site or UI
How do I kill browserSync before creating it?

Categories

HOME
go
embedded
turing-machines
pagination
phpmyadmin
camera
can
simulink
mvc5
nfs
elasticsearch-5
bing-maps
emoji
screen-readers
symfony-2.8
template-engine
soci
systemtime
pimcore
object-storage
cppreference
user-defined-functions
mockjax
sql-server-2000
github3.py
android-maps-extensions
reactjs.net
python-pptx
sql-server-ce
odroid
railstutorial.org
bindingnavigator
android-exoplayer
importerror
flask-login
strftime
phpdbg
jide
servermanager
xbmc
datamaps
bluez
remedy
tinkerpop
er-diagram
reshape
flac
omxplayer
seek
segment-io
spring-cloud-feign
macaulay2
observablecollection
nservicebus5
phpwebsocket
nupic
beanstalk
nio2
crouton-os
atan2
linklabel
sciruby
fiware-monitoring
oracle-spatial
django-urls
android-launcher
page.js
viola-jones
dnssec
google-refine
cakephp-2.7
actionfilterattribute
cryptographichashfunction
human-computer-interface
mdichild
cuba
http-patch
jammer
dtmf
gpars
node-blade
midlet
web-farm
veracity
objectquery
predicatebuilder
virtualpathprovider
entitydatasource
jqote
timthumb
dataform
presentation-layer
instantiationexception
object-database
echo3
cuda.net
wcf-proxy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App