From 762b97d19d1dc47695df9872bc38db0674274d48 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 24 Jul 2021 04:09:37 -0600 Subject: [PATCH] refactor(livereload): update default exclusions - use RegEx format - still seems to be ignored, pending issue upstream --- .env | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 9528424..3e092ae 100644 --- a/.env +++ b/.env @@ -74,18 +74,19 @@ TLS13_ONLY=TRUE #LR_PORT=35729 # LR_EXTS: -# Comma-delimited list of extensions to watch for changes and trigger a browser reload. This list *must* be quoted. +# Comma-delimited list of extensions to watch for changes and trigger a browser reload. # REQUIRED: NO # DEFAULT: "html,xml,css,js,jsx,ts,tsx,php,py" # VALID OPTIONS: Any valid file extension(s) LR_EXTS="html,xml,css,js,jsx,ts,tsx,php,py" # LR_EXCLUDE: -# Comma-delimited list of files/directories to exclude from monitoring. This list *must* be quoted. +# Comma-delimited set of /regular-expressions/ defining what to exclude from monitoring in addition to the defaults. +# Upstream node-livereload lists the following as defaults: "/\.git\//,/\.svn\//,/\.hg\//" # REQUIRED: NO -# DEFAULT: ".git/,.svn/,.vscode/,.idea/" -# VALID OPTIONS: Any valid files or directories/ -LR_EXCLUDE=".git/,.svn/,.vscode/,.idea/" +# DEFAULT: "/\.vscode\//,/\.idea\//,/\.tmp/,/\.swp/" +# VALID OPTIONS: Any valid RegEx that matches files or directories +LR_EXCLUDE="/\.vscode\//,/\.idea\//,/\.tmp/,/\.swp/" # LR_DELAY: # Amount of time in milliseconds before detecting a change and sending a trigger for a browser reload. Useful if you need to allow time for background recompilation, etc.