SASS is not watching?

Viewed 2460

I have installed SASS on Ubuntu as explained in the instructions, which means that I downloaded the source dart-sass-1.22.2-linux-x64.tar.gz, extracted it and added a path variable into my .bashrc.

Calling

sass input.scss output.css

will create the css file from scss source as explained in the guide.

However, when entering

sass --watch input.scss output.css

nothing happens. The file output.css is not updated when input.scss is saved. There is also no message like

Sass is watching for changes. Press Ctrl-C to stop.

as I have seen in various other posts. This is how my terminal looks:

enter image description here

Any ideas why sass is not watching?

2 Answers

I think you forgot the : my example is this: sass --watch assets/css/main.scss:assets/css/main.css

I have the same issue like you and this config work. I create 2 folder scss and css like this

enter image description here

Then I create 1 scss file inside scss folder then I run

sass --watch scss:css

Then result

enter image description here

Related