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
fuelux
pyqt
spring-data-mongodb
permissions
ado.net
android-json
frontend
nstableheaderview
arangodb
why3
magnetic-cards
powershell-v5.0
standards
production
sigma.js
babel
joptionpane
tosca
xunit
froala
interbase
bulletphysics
entity-relationship-model
nsurl
eviews
complex-numbers
dumpbin
activexobject
google-earth-engine
dm-script
modernizr
sharp-snmp
xmldocument
phpdbg
textsum
libgphoto2
globalize
activeperl
compiler-design
pdf-conversion
baidu
node-request
cubism.js
grails-plugin
winusb
seek
resourcemanager
mapinfo
udpclient
android-wake-lock
angular-ui-typeahead
nss
sklearn-pandas
morton-number
extjs-grid
typemock
aspectj-maven-plugin
phpldapadmin
mass-assignment
machine-instruction
imagefilter
with-statement
ignite-ui
cancellation
ios8-extension
file-not-found
square-bracket
qscrollarea
gtm-oauth2
http-status-code-410
resource-management
subgraph
cuda-gdb
lambdaj
apache-whirr
oracle-enterprise-linux
cgimage
jquery-tools
automationelement
listactivity
google-ajax-api
exponentiation
socketserver
collectionviewsource
presentation-layer
skype4java
sifr3
product-management
java1.4
information-management
image-capture
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