S
S
Sergey Vasenin2017-08-06 11:56:45
Browsers
Sergey Vasenin, 2017-08-06 11:56:45

How to set up browser-sync?

how to set up browser -sync on the site and did not understand can someone tell me

var gulp = require('gulp');
var sass = require('gulp-sass');


gulp.task('sass',function(){
  gulp.src('./project1/**/*.scss')
  .pipe(sass().on('error', sass.logError))
  .pipe(gulp.dest('./project1'));
});

gulp.task('sass:watch',function(){
  gulp.watch('./project1//**/*.scss', ['sass']);
});

here is the gulp file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2017-08-06
@zorro76

Here is the simplest and most accessible Browsersync + Gulp.js example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question