A
A
Alexander2016-05-02 05:29:36
HTML
Alexander, 2016-05-02 05:29:36

How to force browsersync in gulp to update only a specific html file?

Hello, problem: when saving a jade file, all open html files in the browser are updated, is it possible to force browsersync to update only the file that I have saved at the moment, and not all? Here is what the task looks like: https://jsfiddle.net/m95u6pwk/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Margo1964, 2016-05-02
@Margo1964

instead
of gulp.watch('app/**/*.html', browserSync.reload);
write
gulp.watch('app/some/file.html', browserSync.reload);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question