build: Pass watchFiles list to auto trigger rebuild process on template change

This commit is contained in:
Suraj Shetty 2022-03-15 09:29:54 +05:30
parent 24f3123552
commit ccb4475411

View file

@ -20,7 +20,8 @@ module.exports = {
.then(content => { .then(content => {
content = scrub_html_template(content); content = scrub_html_template(content);
return { return {
contents: `\n\tfrappe.templates['${filename}'] = \`${content}\`;\n` contents: `\n\tfrappe.templates['${filename}'] = \`${content}\`;\n`,
watchFiles: [filepath]
}; };
}) })
.catch(() => { .catch(() => {