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