L
L
lmp2017-09-07 15:46:09
gulp.js
lmp, 2017-09-07 15:46:09

How to open browser sync through chrome?

I want browser sync to open the page not through firefox, but through google chrome when starting the gallp. The documentation says to add the parameter browser: 'google chrome'.
Browser sync itself starts, but Google does not want to open it.
Here's what it outputs:

[Browsersync] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)

What is a headless environment?
Here's what's in my gallop:
gulp.task('brow', function() {
  brow.init({
    server: {
      baseDir: 'app'
    },
    browser: 'google chrome',
    notify: false
  });
});

Maybe there is some mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2017-09-07
@lmp

browser: 'chrome',
Works on Windows.

K
Kvarutar, 2020-06-15
@Goleks

Write the path to chrome

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question