Open Grawl opened 5 years ago
I know this question was asked a long time ago, but since I just stumbled into it by looking for the same answer, allow me to answer: there is a non-documented (but exposed by the API and the TypeScript definitions) function available on each BrowserSync instance, named getOption
.
You can use it like this to get a Map of all the URLs listened by Browsersync server:
browserSyncInstance.getOption('urls');
From there, you can construct your own banner.
Issue details
When Browsersync starts, it shows this banner to command line:
I want to get it every time when my Gulp watcher is running, to get something like Webpack log.
Is there a way to get it? Or even some Gulp plugin to do something like this?
Steps to reproduce/test case
Start Browsersync and look at command line output
Please specify which version of Browsersync, node and npm you're running
Browsersync use-case