browser-sync


browsersync not working (note: not using gulp)


I'm trying to use browsersync without Gulp, just plain old html and css, but it won't update any changes made to css. The browsersync shows that it's connected when I open the page through the terminal, but it isn't injecting CSS when I change/add CSS in the project and the terminal just shows this:
[BS] Serving files from: ./
[BS] Watching files...
Okay, so like I said in my previous (deleted) answer, I had the same troubles. Server started, "Connected to BrowserSync" popped up on browser, but no reload when I change anything to my html.
At first, I thought it was Chokidar that was the problem. So I updated it with npm install -g chokidar and npm install chokidar --save. However, when I got home (I had the problem on both my work and home computer), this fix didn't work. Then I noticed this worked: browser-sync start --server --files "*.html", but this failed: browser-sync start --server --files "css/*.css, *.html, js/*.js". That last one is a .bat file I used on my previous project.
So, I started googling and found a different syntax. I changed my command and now it works: browser-sync start --server --files "css/*.css" "*.html" "js/*.js"
(mind the spaces and quotes instead of comma's)
I have no idea if I'm seeing ghosts, or if the syntax actually changed.

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
asp.net-web-api
httparty
design-patterns
fpga
angular2-material
swt
apache-spark-mllib
oracle-apex-5
jsf-2.2
pyqt4
jquery-ui
mvc5
bing-maps
teechart
32bit-64bit
openstreetmap
pega
why3
line
stellar.js
do-while
firefox-addon
html5-appcache
connector
poedit
cgbitmapcontext
ember-cli
direct3d11
perlbrew
siri
errbot
uitapgesturerecognizer
sql-server-2000
memory-address
sammy.js
instantiation
modalviewcontroller
sql-delete
docfx
lint
google-earth-engine
ideascript
plaintext
vmware-fusion
preloader
knime
snapchat
servermanager
ntvs
clarifai
tinymce-3
excel-dna
libjpeg
lsyncd
vibrate
vcloud-director-rest-api
cudd
jquery-jscrollpane
gogs
deep
angular-ui-typeahead
libav
kendo-upload
exim4
tfs-workitem
iokit
intel-c++
page.js
dulwich
telepat
matlab-deployment
at-job
theos
big-ip
sql-scripts
trdion2011
wxformbuilder
ios8-extension
multiautocompletetextview
isqlquery
thttpd
database-create
isa-swizzling
entitydatasource
w3c-geolocation
http-daemon
tmx
mtu
commerceserver2007
ajax-polling
sifr3
fail-fast-fail-early
wysiwym
movieplayer
change-management
great-circle
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