Gulp v4 Sass + Browser-sync


Quick gulpfile.js script to compile Sass and sync with browser for future reference.

More at:

const gulp = require("gulp");
const sass = require("gulp-sass");
const browserSync = require("browser-sync").create();
const concat = require("gulp-concat");

function style() {
  return gulp
    .pipe(sass().on("error", sass.logError))

function watch() {
    // server: {},
    proxy: "http://localhost:8888/gitema/",
    notify: true,
  });"./assets/scss/**/*.scss", style);"./*.php").on("change", browserSync.reload);"./assets/js/**/*.js").on("change", browserSync.reload);
} = style; = watch;

You'll only receive email when they publish something new.

More from Teo Oliver