mirror of
https://github.com/naturalcrit/naturalcrit.git
synced 2025-10-27 07:29:54 +00:00
12 lines
338 B
JavaScript
12 lines
338 B
JavaScript
const log = require('../utils/log.js');
|
|
|
|
let lr_server;
|
|
const runLivereload = () => {
|
|
log.checkProduction('livereload');
|
|
const livereload = require('livereload');
|
|
log.watch('livereload running');
|
|
if(!lr_server) lr_server = livereload.createServer({ port: 35730 });
|
|
return lr_server.watch(`build`);
|
|
};
|
|
|
|
module.exports = runLivereload; |