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

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
Setup browser-sync to serve routes from absolute directories on windows

Categories

HOME
adal
hyperlink
design-patterns
pagination
angular-formly
numbers
static-site
tivoli
tail
limit
character
elasticsearch-5
fosrestbundle
jquery-ui-sortable
minecraft-forge
android-securityexception
flatpak
package-managers
atlassian-stash
fileserver
google-data-studio
windows-xp
simpleitk
monit
expressionengine3
opentk
ms-access-web-app
android-maps
linked-data
testcomplete
eviews
volatile
recurring-events
sendbird
xajax
watchman
portforwarding
branching-and-merging
oim
strftime
globalize
zenhub
payload
donations
stripe-connect
custom-lists
microstation
segment-io
eigenvector
embedding
kiosk
phpwebsocket
fuzzywuzzy
nupic
exim4
piracy-prevention
dllimport
canalyzer
mod-proxy
lasso
airbrake
fits
bcache
qtwebengine
mass-assignment
mruby
iiop
contrast
machine-instruction
paw
mutual-authentication
android-usb
ora-06550
cmmi
nevron
actiondispatch
video-codecs
server-administration
device-width
veracity
zope.interface
lambdaj
apache-commons-dbutils
workflow-services
drawtobitmap
codebase
cloudfiles
mtu
spread
data-mapping
lalr
google-wave
perl5.12
sqlobject
netbeans6.1

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