S
S
sergemin2017-03-12 23:18:34
Frontend
sergemin, 2017-03-12 23:18:34

How to make livereload in Open Server?

I had gulp set up in such a way that it tracked changes in all files and, on each save, displayed it immediately in the browser. I want it to be the same with Open Server. Tell me how to do it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2017-03-12
@sergemin

you also run Galpovsky, for example, browser-sync and open it through it.
task will look something like this:

gulp.task('serve', function() { 
  browserSync.init({
    proxy: "project.loc" //название папки домена в опен сервере
  });

  gulp.watch("**/*.html").on('change', browserSync.reload);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question