T
T
Tempest992018-11-20 23:48:28
gulp.js
Tempest99, 2018-11-20 23:48:28

How to auto-refresh a page with Gulp?

I saw earlier how people started auto-refreshing the page when changing in the code editor by simply writing gulp on the command line, instead of a long browser-sync ... tell me how to implement this, I'm just a beginner and maybe the question was not quite right

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Michurin, 2018-11-20
@denistu10

https://browsersync.io/docs/gulp

C
coderxx, 2018-11-21
@coderxx

install the browser-sync module
in the hapfile add:

let browserSync   = require('browser-sync');
gulp.task('browser-sync', function() {
  browserSync({
    server: {
      baseDir: 'app'
    },
    notify: false,
  })
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question