Adding ability to specify the localhost URI via config options #861
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
since browsersync launches a browser window once it start ups, it would be nice to be able to specify the host. Yes localhost works. We use different urls (all mapped to 127.0.0.1) different and rely on the domain name for certain features... Therefore, it would be nice if we were able to configure the domain of the freshly opened window (i.e. something other than localhost). All this does is add a 'localhost' option to the config. If specified, this will be used rather than 'localhost'... so
{ localhost: 'local-foobar.com' }
would cause browsersync to launch a new window at "http://local-foobar.com:3000" after the server loads.