B
B
Black_Fire2020-07-22 12:49:52
JavaScript
Black_Fire, 2020-07-22 12:49:52

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

1 answer(s)
A
Alexander Osadchy, 2020-07-22
@DELUX

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 question

Ask a Question

731 491 924 answers to any question