Open xgqfrms opened 1 year ago
I noticed this too. Instead, I got it working with --startPath
. For example, I think what you were trying to do is equivalent to this:
browser-sync . --startPath=/public/index.html --watch
then it automatically opens the browser to http://localhost:3000/public/index.html
.
thanks @trusktr, that's correct.
Agree with the original post too though - this should 'just work' with --open
also side note, that command in the original post could probably be shorted to
# before
browser-sync start --open 'http://localhost:3000/public/index.html' --server --files './**/*.*'
# after
browser-syn public -w
Issue details
browser-sync start
--open
does not work with URLhttps://browsersync.io/docs/command-line
Steps to reproduce/test case
public
folder andindex.html
fileopened
http://localhost:3000/
❌wanted
http://localhost:3000/public/index.html
✅Please specify which version of Browsersync, node and npm you're running
Affected platforms
Browsersync use-case
If CLI, please paste the entire command below