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

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
windows
api
ggplot2
google-spreadsheet
ns-3
twig
youtube-data-api-v3
solaris
rendering
simulink
regular-language
gluon-mobile
flume
enthought
heap
supervisor
frequency-distribution
flash-player
mvc-mini-profiler
android-7.0-nougat
vuejs
digital-signature
kendo-mobile
guzzle
react-toolbox
monit
xunit
perlbrew
itunes
sinch
gp
tizen-tv
winpe
testcomplete
event-flow
mockjax
jbutton
angularjs-material
erb
autolisp
hreflang
gnat-gps
sendbird
fossil
installscript
xajax
python-pptx
reason
verifiable-c
spring-mvc-test
skylink
print-css
congestion-control
apollostack
contract
fwrite
ntvs
linter
sonarlint-eclipse
geotiff
launchctl
rserve
modelsim
avx
er-diagram
check-mk
universal-analytics
android-instrumentation
uicolor
scaffolding
firebase-security
google-query-language
bizagi
dbamp
hadoop-partitioning
uiactionsheet
nio2
maybe
directdraw
avisynth
forwarding
ons-api
cgi-bin
evolus-pencil
canvg
cosine-similarity
browserify-shim
malformedurlexception
fpdi
bin
gtm-oauth2
mvc-editor-templates
jquery-1.9
font-awesome-4.0.0
joomla3.1
tree-balancing
jquery-blockui
web-farm
thttpd
azman
apache-commons-dbutils
umra
facebook-iframe
scrollbars
glui
perl5.12

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