gulpfile.js 573 B

12345678910111213141516171819202122232425
  1. const gulp = require('gulp'),
  2. browserSync = require('browser-sync').create();
  3. function reload(cb) {
  4. browserSync.reload();
  5. cb();
  6. }
  7. function run() {
  8. browserSync.init({
  9. open: 'external',
  10. host: 'uhp.ovid',
  11. proxy: 'https://uhp.ovid',
  12. port: '333',
  13. ssl: {
  14. key: '/opt/homebrew/etc/httpd/ssl/uhp.ovid-key.pem',
  15. cert: '/opt/homebrew/etc/httpd/ssl/uhp.ovid.pem'
  16. }
  17. });
  18. gulp.watch(['./*.json','./**/*.html','./**/*.php','./**/*.css','./**/*.js' ]).on('change',browserSync.reload);
  19. console.log("🔥 Run");
  20. }
  21. exports.run = run;