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

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
What's the equivalent bs-config.js (Browsersync) of this command?

Categories

HOME
hyperlink
github-for-windows
android-studio-2.2
nunit
jax-rs
jsf-2.2
graphics
limit
interpolation
missing-data
angularfire2
octave
vimdiff
mxgraph
opengl-es-3.0
libusb
soci
digital-signature
sse
charles
babel
jboss6.x
ckfinder
windows-server-2003
moses
opentk
entity-relationship-model
apktool
linked-data
inversion-of-control
gp
ntp
google-cast
dst
weather
angularjs-material
rselenium
wacom
hreflang
twos-complement
joomla2.5
sharding
sql-delete
mnist
sharepoint-workflow
raft
reason
parse-tree
metaprogramming
laravel-elixir
linter
activeperl
compiler-design
java-6
type-theory
lua-telegram-bot
aurora
phpwebsocket
exim4
httpruntime.cache
mobiledoc-kit
jnlua
libvlc
vigenere
rate-limiting
toolkit
airbrake
openbabel
angular-gettext
uncaught-typeerror
jbake
administration
contrast
spy++
nsmenu
jama
template-deduction
ios8-extension
buffering
notorm
embedded-fonts
jeromq
cffile
observium
mysql-error-2013
sqlclr
dopostback
iboutlet
infobright
urlrewriter
cuteeditor
dataform
http-daemon
inline-formset
svk
updatesourcetrigger
vs-android
openfaces
application-verifier
movieplayer

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