Answer the question
In order to leave comments, you need to log in
How to configure BrowserSync to work without browser focus?
Is there any way I can tweak BrowserSync so I don't have to focus on the browser to trigger changes? For example, a code editor is open on the laptop, something is written in it, and so that the changes are activated immediately in the background, and not after switching to the browser window.
Excerpt from gulpfile:
let brSync = () => {
browserSync.init({
server: {
baseDir: "./",
},
notify: false
});
gulp.watch("./*.html").on("change", browserSync.reload);
}
Answer the question
In order to leave comments, you need to log in
I’m using this assembly and it works like that there .. the browser is minimized, etc. - it doesn’t matter, CTRL + S - and the page is updated
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question