var gulp = require('gulp'),
concatCSS = require('gulp-concat-css'),
bs = require('browser-sync'),
less = require('gulp-less');
const les = function() {
return gulp.src("src/less/*.less")
.pipe(less())
.pipe(gulp.dest("srs/css"))
.pipe(bs.stream());
}
const server = function() {
bs.init({
server: {
baseDir: "src/"
}
});
gulp.watch("src/less/*.less", les);
gulp.watch("src/*.html").on('change', bs.reload);
}
gulp.task(les);
gulp.task(server);
gulp.task(gulp.parallel([server, les]));