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 possible to open for example facebook.com page in browsersync?
Connect-gzip-static doesn't pick up html in firefox
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

Categories

HOME
embedded
porting
spark-streaming
time-complexity
c99
jmeter
google-spreadsheet
3d
sh
solaris
google-cloud-functions
barcode
rcloud
azure-powershell
internationalization
scsi
symfony-2.8
google-content-api
google-picker
digital-signature
enterprise-miner
selinux
pagespeed
systemtime
string-concatenation
aggregation
bulletphysics
mat
sqlpackage
zend-debugger
git-squash
gojs
lint
git-rewrite-history
diacritics
demo
kill
xv6
postgresql-8.4
subclipse
apache-directory
facebook-social-plugins
mesosphere
automapper-5
sonarlint-eclipse
netbeans6.8
carrot2
arq
java-6
git-flow
template-toolkit
angular2-testing
reporting-services-2012
watch-os-2
signalr.client
synonym
qiime
stream-processing
riot
query-by-example
gcloud-ruby
false-sharing
cycle2
jaunt-api
nutiteq
shopizer
java-security
linkedin-jsapi
mutual-authentication
conditionaltagsupport
openargs
artemis
swfobject
cgimage
node-redis
fsevents
http-daemon
inline-formset
ie-compatibility-mode
instantiationexception
silent
office-2007
interprocess
addchild
application-verifier
cfwindow
movieplayer
wspbuilder

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