build: Pass watchFiles list to auto trigger rebuild process on template change
This commit is contained in:
parent
24f3123552
commit
ccb4475411
1 changed files with 2 additions and 1 deletions
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue