In a long living process (like in NativeScript Sidekick), the LiveSync process for a project may be stopped, but this will not stop the node-sass running in the background.
Use the after-watch hook, which is raised when LiveSync operation stops and kill currently running node-sass compiler. This way we'll not keep running watchers in the background.
In a long living process (like in NativeScript Sidekick), the LiveSync process for a project may be stopped, but this will not stop the
node-sass
running in the background. Use the after-watch hook, which is raised when LiveSync operation stops and kill currently running node-sass compiler. This way we'll not keep running watchers in the background.The implementation is a copy of https://github.com/NativeScript/nativescript-dev-typescript/pull/34
Possible fix for: https://github.com/NativeScript/nativescript-cli/issues/3017