From ccb4475411c6de7d8a8597135eab433000f5cc52 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 15 Mar 2022 09:29:54 +0530 Subject: [PATCH] build: Pass watchFiles list to auto trigger rebuild process on template change --- esbuild/frappe-html.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esbuild/frappe-html.js b/esbuild/frappe-html.js index 8c4b7ca3d7..9a7edb144d 100644 --- a/esbuild/frappe-html.js +++ b/esbuild/frappe-html.js @@ -20,7 +20,8 @@ module.exports = { .then(content => { content = scrub_html_template(content); return { - contents: `\n\tfrappe.templates['${filename}'] = \`${content}\`;\n` + contents: `\n\tfrappe.templates['${filename}'] = \`${content}\`;\n`, + watchFiles: [filepath] }; }) .catch(() => {