From 6932b609e1ddd81651c22d183aca4c1689c213ee Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 19 Dec 2019 19:15:44 +0100 Subject: [PATCH] Fixed the file watcher for SASS files Signed-off-by: WolverinDEV --- file.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/file.ts b/file.ts index 18cc3fca..6dd974dd 100644 --- a/file.ts +++ b/file.ts @@ -805,7 +805,12 @@ namespace watcher { if(this._callback_init) this._callback_init(); - //console.log("TSCWatcher read %d bytes", buffer.length); + + const data = buffer.toString(); + if(false) { + for(const line of data.split("\n")) + console.log("%s: %s", this.name, line); + } } private handle_stderr_readable() { @@ -842,7 +847,7 @@ namespace watcher { } protected start_command(): string[] { - return ["npm", "run", "sass", "--", "--watch"]; + return ["npm", "run", "sass", "--", "--watch", ".:."]; } } }