BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io

Home Page:https://discord.gg/2d2xUThp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to not close the opened browsers in Linux once browser-sync exits

Rootdiv opened this issue · comments

Issue details

In Linux (Ubuntu Mate or Manjaro Linux or openSUSE Tumbleweed not it matters) after I press Сtrl + С to interrupt a running browser-sync start, my browsers opened by browser-sync are force close. Is it possible to force not to close browsers opened by browser-sync after it exits and leave them open?

Steps to reproduce/test case

in gulpfile.js

const browserSync = require('browser-sync').create();
const watchFiles = () => {
  browserSync.init({
    ui: false,
    notify: false,
    server: { baseDir: buildFolder },
    browser: ['google-chrome', 'firefox'],
  });

  watch(paths.srcSass, styles);
};
exports.default = series(clean, htmlInclude, styles, resources, watchFiles);

Run gulp command.

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.27.9, 2.27.10, 2.29.3 ]
  • Node [ 16.16 ]
  • Npm [ 8.14.0 ]

Affected platforms

  • [ x ] Linux (Ubuntu, Manjaro, openSUSE Tumbleweed)

Browsersync use-case

  • [ x ] Gulp

Interesting, I am looking for the opposite. I would like the browser windows to close when brower-sync exits. I am using Windows.

Version 2.29.3 bug NOT fixed!