/**
 * Require Browsersync
 */
var browserSync = require("browser-sync");

/**
 * Run Browsersync with server config
 */
browserSync({
  watch: true,
  watchOptions: {
    ignoreInitial: true,
    ignored: "*.txt",
  },
  files: ["src/**/*.php", "src/**/*.css", "app/*.html", "app/css/*.css"],
  watchEvents: ["add", "change", "unlink", "addDir", "unlinkDir"],
  reloadDelay: 10,

  // Using a localhost address with a port
  proxy: "localhost:8000",
});
