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

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
c++11
wakanda
fftw
gradient
vscode-extensions
mapbox
nuget-package
title
elasticsearch-5
drop-down-menu
openpyxl
spring-social
stellar.js
atlassian
esoteric-languages
foreign-keys
gmm
enterprise-miner
charles
selinux
zxing
fragment-backstack
amazon-quicksight
volatile
anki
python-2.6
mockjax
git-squash
catch-unit-test
erb
spring-security4
wacom
card.io
sendbird
joomla2.5
imx6
python-pptx
raft
apic
parse-tree
android-augmented-reality
connection-pool
cin
comparison-operators
apriori
berkeley-db-je
oim
dapper-simplecrud
snapchat
bluez
convex-optimization
page-replacement
stdmap
java-bytecode-asm
filehandle
skin
arules
er-diagram
type-theory
rackspace-cloud
vcloud-director-rest-api
pytables
tinkerpop3
swizzling
mediametadataretriever
data-protection
ikiwiki
dynamics-nav-2016
gocql
xvim
viola-jones
amiga
sql-server-data-tools
canvg
nsurlsessiondatatask
jquery-forms-plugin
user-permissions
entry-point
psr-4
raygun
gii
unix-socket
codeplex
ora-06550
cmmi
jquery-1.9
wp7test
appledoc
hbm2java
wordprocessingml
sifr3
java1.4
commercial-application

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