const gulp = require('gulp'), browserSync = require('browser-sync').create(); function reload(cb) { browserSync.reload(); cb(); } function run() { browserSync.init({ open: 'external', host: 'fuf.ovid', proxy: 'https://fuf.ovid', port: '333', ssl: { key: '/opt/homebrew/etc/httpd/ssl/fuf.ovid-key.pem', cert: '/opt/homebrew/etc/httpd/ssl/fuf.ovid.pem' } }); gulp.watch(['./*.json','./**/*.html','./**/*.php','./**/*.css','./**/*.js' ]).on('change',browserSync.reload); console.log("🔥 Run"); } exports.run = run;