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

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?
Unable to install browser-sync on windows 7
browser-sync proxy fails to connect

Categories

HOME
scikit-learn
design-patterns
deep-learning
character-encoding
swt
serialization
alsa
crystal-reports-2013
recordrtc
performancepoint
openstreetmap
commonjs
gson
mod-security
datastage
soci
symfony-console
replication
systemtime
dapper-extensions
pic32
custom-post-type
pylons
delimiter
tizen-tv
event-flow
recurring-events
python-2.6
google-knowledge-graph
watchman
git-rewrite-history
connection-pool
p4merge
news
levenshtein-distance
xmldocument
vugen
rserve
podscms
truezip
pdf-conversion
check-mk
rackspace-cloud
d3-force-directed
baidu
bootstrap-tags-input
smartfoxserver
preprocessor
expectations
cda
redis-cluster
libav
kendo-upload
rubaxa-sortable
jsvc
snackbar
public-html
gii
jqmodal
functional-java
draw2d-js
radiant
renderer
file-not-found
high-resolution
video-codecs
joomla3.1
uimanageddocument
os.system
listitem
appjs
window-decoration
hibernateexception
uipagecontrol
xui
django-paypal
luajava
updatesourcetrigger
duplex
dsl-tools
tui
netbeans6.1

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