I seem not to be able to make sass watch changes in my partials, so it is only when I make changes to my main scss file that the css file is compiled.
I have a folder with my m.scss and m.css file and a subfolder to that called partials with my partials in. So:
- m.css
- m.scss
- partials/_base.scss
I have tried:
sass -I partials --watch m.scss:m.css
But does not work.
I am on a mac with an ubuntu server running on paralels and running Haml/Sass 3.0.15 (Classy Cassidy)
The simple way I got this to work was to go to just do a watch on the folder with my primary css in. So if your css folder is call “css” then:
That compiles m.scss into m.css everytime a scss file in the folder or a subfolder is changed