Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rootdiv opened this issue Jul 19, 2022 · 3 comments
Open

Comments

@Rootdiv
Copy link

Rootdiv commented Jul 19, 2022

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 and above ]
  • Node [ 16.16 and above ]
  • Npm [ 8.14.0 and above ]

Affected platforms

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

Browsersync use-case

  • [ x ] Gulp
@Rootdiv Rootdiv changed the title Option to not close the opened browsers once browser-sync exits? Option to not close the opened browsers in Linux once browser-sync exits? Jul 19, 2022
@jmwebservices
Copy link

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

@Rootdiv
Copy link
Author

Rootdiv commented Jun 5, 2023

Version 2.29.3 bug NOT fixed!

@Rootdiv Rootdiv changed the title Option to not close the opened browsers in Linux once browser-sync exits? Option to not close the opened browsers in Linux once browser-sync exits Jun 5, 2023
@Rootdiv
Copy link
Author

Rootdiv commented Jan 19, 2024

Version 3.0.2 bug NOT fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants