SASS is not watching?

2019-07-26 06:45发布

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?

标签: css ubuntu sass
2条回答
ゆ 、 Hurt°
2楼-- · 2019-07-26 07:21

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

查看更多
Explosion°爆炸
3楼-- · 2019-07-26 07:22

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

查看更多
登录 后发表回答