Sublime Text 2 does not save the embedded SASS file

I installed the SASS build system for Sublime Text 2 , as described in readme, and everything went well (also installing SASS). Now, if I try to create my .scss file, ST2 will print something like "[Finished in 0.2s]" without showing me any result or save the .css file. I can also write the wrong code, and he wonโ€™t complain about it, just give me a โ€œfinishedโ€ message again. Any idea what causes this behavior?

+2
source share
2 answers

I had the same problem with my mountain lion.
I fixed this by changing the line "cmd" in SASS.sublime-build (and all the other files that I created for SASS) from

["sass", "--update", "$file:${file_path}/${file_base_name}.css"] 

to

 ["sass --update $file:${file_path}/${file_base_name}.css"] 

I donโ€™t know why, but in practice, if you write a command in an array with more than one element, this will not work, and the command all in one line will work.

+5
source

gem install sass

in ST2 / tools / build system / new build system ...

 { "cmd": ["cmd", "/c", "sass --style compressed", "$file", "$file_base_name.css.min"] } 

or

 { "cmd": ["cmd", "/c", "sass", "$file", "$file_base_name.css"] } 

save as "sass.sublime-build"

0
source

Source: https://habr.com/ru/post/922573/


All Articles