A
A
arthillidan2020-01-15 12:03:03
gulp.js
arthillidan, 2020-01-15 12:03:03

The Browser-Sync page has stopped updating if you change the scss file. How can this be fixed?

gulp.task('scss', function(){
return gulp.src('app/scss/**/*scss')
.pipe(sass({outputStyle: 'compressed'}))//compressed-compressed transfer, expanded-beautiful
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('app/css')) //folder where files are placed
.pipe(browserSync.reload({stream: true} ))
});
gulp.task('browser-sync', function() {
browserSync.init({
server:{
baseDir: "app/"
},
});
});
gulp.task('watch', function(){
gulp.watch('app/scss/*.scss', gulp.parallel('scss'));
gulp.watch('app/*.
gulp.watch('app/js/*js', gulp.parallel('script'));
});
gulp.task('default', gulp.parallel('scss', 'js', 'browser-sync', 'watch'));

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