E.g.
chrome.exe --remote-debugging-port=9222
Npm [x]
[ ] linux
[ ] other _(please specify which)_
[ ] API
bs.init({
browser: 'chrome --remote-debugging-port=9222',
files: 'client/**',
ghostMode: false,
proxy: 'http://localhost:3000'
});
This just opens my default browser (Firefox).
This is out of scope for Browsersync core and can be easily added with something like this instead
bs.init({
open: false,
files: 'client/**',
ghostMode: false,
proxy: 'http://localhost:3000'
}, function (err, bs) {
require('opn')(bs.options.getIn(['urls', 'local']), {app: ['google chrome', '--incognito']});
});
Great hint, but for me it was given:
[Browsersync] Watching files...
(node:25781) UnhandledPromiseRejectionWarning: Error: spawn google chrome ENOENT
at _errnoException (util.js:1022:11)
Fixed using 'google-chrome' instead of 'google chrome' though ...
require('opn')(bs.options.getIn(['urls', 'local']), {app: ['google-chrome', '--incognito']});
Most helpful comment
This is out of scope for Browsersync core and can be easily added with something like this instead