From 3268d26180a6355cd9eb018f6908837cf5349e72 Mon Sep 17 00:00:00 2001 From: Fig Date: Tue, 7 Nov 2023 13:56:23 +0000 Subject: [PATCH] Relax watchDirectories glob (#202) * Relax watchDirectories glob The previous glob was a little too restrictive and would not watch files target at request variants e.g. `app/views/things/show.html+phone.erb` * Update esbuild.config.mjs --------- Co-authored-by: Chris Oliver --- esbuild.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 9242d0c..2fe760b 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -22,7 +22,7 @@ const entryPoints = [ ] const watchDirectories = [ "./app/javascript/**/*.js", - "./app/views/**/*.html.erb", + "./app/views/**/*.erb", "./app/assets/builds/**/*.css", // Wait for cssbundling changes ] const config = {