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