var gulp = require("gulp");
var sass = require("gulp-sass");
var plumber = require("gulp-plumber");
var server = require("browser-sync").create();
gulp.task("style", function() {
gulp.src("./site/sass/**/*.scss")
.pipe(plumber())
.pipe(sass())
.pipe(gulp.dest("./site/css"))
.pipe(server.stream());
});
gulp.task("serve", ["style"], function () {
server.init({
server: "site/.",
notify: false,
open: true,
cors: true,
ui: false
});
gulp.watch("./site/**/*.scss", ["style"]);
gulp.watch("*.html").on("change", server.reload);
});