I've got some issues with SASS. After updating the .scss
file, the .css
file won't update.
Lets say that this is my folder structure:
-scss
-style.scss
-css
-style.css
index.html
And I'm using this command from project root in cmd:
sass --watch scss/style.scss:css/style.css --style compressed
It compiles it the first time, but when I make some changes in the .scss
file, it doesn't update.
I'm using:
win 8.1 64bit
ruby 2.0.0p481 64bit
Sass 3.4.2
How to make it watch for updates? Or am I doing something wrong?
Thanks
Update: Tested the same thing on ubuntu 14.04 and it works just fine (however, on ubuntu I've installed the latest version of ruby - ruby 2.1.2p95 )
Update 2: Issue on GitHub
I also came across this issue. I downgraded Sass to version 3.3.14 and it worked for me again. No idea why.
Using: win 8.1 64bit ruby 2.0.0p481 64bit
I had same problem and upon solution didn't helped. Looks like ruby on windows 8 has WDM (Windows Directory Monitor) problem and
--watch
command is not working properly.I solved problem in this way:
And after that,
--watch
command is working properly.Hope this way will help someone.
This was a bug in Sass 3.4.2: https://github.com/sass/sass/issues/1409
It was fixed in Sass 3.4.3: http://sass-lang.com/documentation/file.SASS_CHANGELOG.html#343_4_september_2014
If you're using Bundler, make sure your Sass version is not restricted to
3.4.2
in yourGemfile
. Recommended line isgem 'sass', '~> 3.4.3'
. The runbundle update
within your project root.If you're not using Bundler, simply run
gem update sass
.