E
E
egsi2018-09-28 10:43:43
gulp.js
egsi, 2018-09-28 10:43:43

How to make browser-sync track changes?

How to make browser-sync track changes of all html files in all folders? I use gulp to build

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Merrii, 2018-09-28
@Merrii

Through watch you prescribe all the files that you need and browser-sync works. I have so:

function watch(){
        browserSync.init()    
        gulp.watch('assets/scss/**/*.scss', style);
        gulp.watch('assets/js/*.js', scripts);
        gulp.watch("assets/*.html").on('change', reload);
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question