feature(livereload): add debug output as default

This commit is contained in:
Asif Bacchus 2021-07-22 21:21:59 -06:00
parent fdfba8ab4f
commit ee38b2468e
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ ENV LR_PORT=35729
ENV LR_EXTS="html,xml,css,js,jsx,ts,tsx,php,py" ENV LR_EXTS="html,xml,css,js,jsx,ts,tsx,php,py"
ENV LR_EXCLUDE=".git/,.svn/,.vscode/,.idea/" ENV LR_EXCLUDE=".git/,.svn/,.vscode/,.idea/"
ENV LR_DELAY=500 ENV LR_DELAY=500
ENV LR_DEBUG=true
# install livereload npm as node user then switch back to root user # install livereload npm as node user then switch back to root user
USER node USER node

View File

@ -15,7 +15,8 @@ const options = {
exts: process.env.LR_EXTS, exts: process.env.LR_EXTS,
exclusions: process.env.LR_EXCLUDE, exclusions: process.env.LR_EXCLUDE,
usePolling: true, usePolling: true,
delay: process.env.LR_DELAY delay: process.env.LR_DELAY,
debug: process.env.LR_DEBUG
}; };
// start server // start server