U
U
Uncle Deacon2017-02-12 00:12:03
Sass
Uncle Deacon, 2017-02-12 00:12:03

How to patch changes to Gulp in Chrome?

Hello. Such is the question. When watching, as I understand it, IE opens by default.
What task should be registered in order to watch through other browsers (chrome was just an example of a question)?
Here is the actual code
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserSync = require('browser-sync')
/*gulp.task('mytask', function() {
return gulp .src('source-files') .pipe ( plugin
())//execution of instruction (){ return gulp.src('app/sass/**/*.sass') .pipe(sass()) .pipe(gulp.dest('app/css'))
.pipe(browserSync.reload({stream:true}))
});
gulp.task('browser-sync',function(){
browserSync({
server:{
baseDir: 'app'
}, notify: false
})
});
gulp.task('watch',['browser-sync', 'sass'], function(){
gulp.watch('app/sass/**/*.sass', ['sass']);
gulp. watch('app/*.html',browserSync.reload)
gulp.watch('app/js/**/*.js',browserSync.reload)
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question