var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
function browserSync(done) {
browsersync.init({
server: {
baseDir: "src/*.html"
},
port: 3000,
notify: false
});
done();
}
function gulpSass() {
return gulp
.src('src/sass/**/*.sass')
.pipe(sass({ outputStyle: "expanded" }))
.pipe(gulp.dest('src/css'))
.pipe(browsersync.stream())
}
gulp.task('sass', gulpSass);
gulp.task('browser-sync', browserSync);
gulp.task('default', gulp.parallel(browserSync, sass));