I want SASS to start at system startup and watch a file/directory the entire time. However, I don't want the command prompt window to appear. If I close the command prompt window, then SASS also stops watching the file.

How do I watch a file using SASS without having a command prompt window open?

Here's part of a .bat file ran at startup:

cd "C:\...\Server\"
sass --watch sass:www/css --style compressed

You can modify your SASS batch file to read:

start sass --watch sass:www/css --style compressed

This will spawn SASS as a new process, and it will be untied from the original command prompt window that started it.

  • But there will still be a command prompt window open. I don't want there to be a window open. – Leo Jiang Apr 27 '14 at 16:23

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.