browser-sync


When using browser-sync,why is the browser saying cannot get, while everything seems fine


This is the screenshot of cmd:
I wrote
browser-sync start --server --files "app\index.html"
Looking at your screenshot it appears that your project directory is situated in the Desktop folder and is structured as follows:
confusion
│
└───app
│
└───index.html
In which case you could try instructing Browsersync to start a server from the app directory. If you cd to your folder named confusion then run:
browser-sync start --server "app" --files "app/index.html"
Note the addition of "app" after the --server flag.

Related Links

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?
How to quit the browser-sync server, or how to know the running server pid
browsersync not working (note: not using gulp)

Categories

HOME
uml
developer-tools
pagination
youtube-data-api-v3
apache-spark-mllib
yahoo-finance
rendering
scripting
3d-reconstruction
nested-if
maxscript
google-admin-sdk
crystal-reports-2013
activecollab
dynatrace
scrolltop
screen-readers
forgot-password
delphi-xe5
monit
windows-server-2003
onload
pic32
fractions
angular-translate
paperjs
gitlab-api
database-comparison
gnat-gps
hunspell
baidu-map
raft
protein-database
linq-to-objects
resolution
odoo-website
nanoc
textsum
openrasta
singleinstance
amq
scalding
static-cast
change-tracking
pacemaker
refinerycms
pushbots
spring-retry
tfs-workitem
sciruby
vigenere
forwarding
rpart
sony-lifelog-api
nutiteq
mmwormhole
java-security
webmatrix-3
webfinger
appserver
tweenlite
encryption-asymmetric
gii
gnumeric
dsym
twitter-bootstrap-rails
accesscontrolexception
solace-mq
rolify
gpars
cnf
pagedown
midlet
nokia-s40
sentestingkit
pyunit
jdb
cgimage
htdocs
matlab-load
non-clustered-index
web-application-project
software-lifecycle
localizable.strings
entitykey

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