how to watch changes in whole directory/folder containing many sass files

JA9 picture JA9 · Aug 25, 2013 · Viewed 69.3k times · Source

How could I trace changes in whole directory containing many sass files ? I'm using the following command to watch changes in sass

file:

sass --watch style.scss:style.css

But how to watch changes in whole directory/folder containing many sass files.

Answer

piouPiouM picture piouPiouM · Aug 26, 2013

Simply use the command sass --watch <input folder>:<output folder>, like this:

$ ls -l
css/ sass/
$ sass --watch sass:css

Where <input folder> contains the Sass files and <output folder> that hosts the generated CSS files.