Option to not close the opened browsers in Linux once browser-sync exits
Rootdiv opened this issue · comments
Vladimir commented
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
Jerry Martinez commented
Interesting, I am looking for the opposite. I would like the browser windows to close when brower-sync exits. I am using Windows.
Vladimir commented
Version 2.29.3 bug NOT fixed!