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.
if you are in your current folder then do the following to watch it.
Expanding the answer by piouPiouM a little:
.css
.<input folder>
and<output folder>
can be the same.Both folders can be the present working directory, so the following is valid:
$ sass --watch .:.
Simply use the command
sass --watch <input folder>:<output folder>
, like this:Where
<input folder>
contains the Sass files and<output folder>
that hosts the generated CSS files.I ended up doing this without using Grunt or Sass-watch:
You can create one sass file which includes the rest of the files, and then just watch this file.
Alternately, look into Grunt and the very good grunt-contrib-compass plugin
Go to you terminal and get to you folder then wrote:
this will watch all sass files and convert to css files with the same name. also you can do it in this way:
I hope this can help you.