NativeScript / nativescript-dev-sass

SASS CSS pre-processor for NativeScript projects
Apache License 2.0
44 stars 17 forks source link

Kill sass compiler when LiveSync stops #40

Closed rosen-vladimirov closed 7 years ago

rosen-vladimirov commented 7 years ago

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

jogboms commented 7 years ago

39