gulpfile.js 572 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: 'lnr.ovid',
  11. proxy: 'https://lnr.ovid',
  12. port: '333',
  13. ssl: {
  14. key: '/opt/homebrew/etc/httpd/ssl/lnr.ovid-key.pem',
  15. cert: '/opt/homebrew/etc/httpd/ssl/lnr.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;