browser-sync


Browserstack not serving index.html by default


bs-config.json
{
"port": 8000,
"server": {
"baseDir": "./dist",
"serveStaticOptions": {
"extensions": [
"html",
"js"
]
}
},
"startPath": "/my-app"
}
When I load localhost:8000/my-app it says Cannot GET /my-app, yet loading localhost:8000/my-app/index.html works.
It also isn't picking up localhost:8000/my-app/index or Javascript files that index.html tries to load, unless I explicitly put the .js extension.
According to the options guide, maybe you can try this config:
{
"port": 8000,
"server": {
"baseDir": "./dist/my-app",
"index": "index.html",
"serveStaticOptions": {
"extensions": [
"html",
"js"
]
}
}
}

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
phantom-dsl
porting
forms
zend-framework
battery
shiro
owl-carousel
appcelerator
replace
emscripten
google-cloud-datalab
gluon-mobile
boto3
extjs4.2
g++
zerobrane
symmetricds
symbol
bitnami
http-post
coin3d
google-maps-autocomplete
springfox
dpdk
exit
easeljs
object-storage
resourcebundle
xunit
interbase
pylons
winpe
alm
autodesk-designautomation
testbed
kodi
glib
erb
keras-layer
pop3
latitude-longitude
bc
spring-mvc-test
magento-1.9.3
portforwarding
photos
globalize
tf
truezip
avx
libjpeg
branch-prediction
custom-lists
webjars
microstation
installshield-2010
lean
yajsw
cycle2
linklabel
decimalformat
wiredep
dock
.bash-profile
baasbox
android-broadcast
code-documentation
infosphere-spl
dbaccess
post-commit-hook
genymotion-call
codeplex
matrix-inverse
accesscontrolexception
kogrid
onload-event
robotlegs
panda3d
midlet
zope.interface
dajaxice
azman
virtualpathprovider
entity-attribute-value
denied
exponentiation
tournament
binomial-heap
addchild
xpsdocument

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