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

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
What's the equivalent bs-config.js (Browsersync) of this command?
How to quit the browser-sync server, or how to know the running server pid
browsersync not working (note: not using gulp)
Using browsersync with gulp/nodemon
BrowserSync Not Reloading Changes

Categories

HOME
algorithm
django
azure-stream-analytics
google-cloud-platform
twitter-bootstrap-3
adal
telegram
pda
angular-formly
interface
apiblueprint
spring-data-redis
shiro
owl-carousel
visual-studio-emulator
lanczos
discrete-mathematics
google-schemas
openpyxl
gson
watson-conversation
onedrive-api
aws-sdk
asp.net-mvc-viewmodel
symfony-console
sse
string-concatenation
php-mysqlidb
aggregation
epsilon
highstock
definitelytyped
maze
beautifier
jquery-multiselect
jasmine-node
asymptotic-complexity
alm
volatile
livelink
dsx-desktop
android-maps-extensions
fossil
arduino-ide
processwire
sharepoint-workflow
apic
tex
connection-pool
sim-card
loading
chef-solo
urlsession
microsoft-metro
xmldocument
hammer.js
mschart
custom-font
appdomain
oracleclient
jqchart
seq
pybrain
visual-studio-2008-sp1
pure-css
mta
model-associations
freepbx
halcon
user-management
highland.js
maybe
concurrentmodification
include-guards
atoi
typeconverter
java-security
exceldatareader
administration
structuremap3
jama
create.js
build-script
jquery-slider
vsx
multiautocompletetextview
sbcl
rfc5322
artemis
mysql-error-1044
model-driven-development
ui-select2
time.h
dopostback
panda3d
nokia-s40
predicatebuilder
ilasm
virtualpathprovider
gobject-introspection
user-tracking
saxparseexception
google-ajax-api
entitydatasource
tournament
creole
timthumb
django-paypal
globals
application-verifier

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