Sublime Text 2 不保存构建的 SASS 文件 [英] Sublime Text 2 doesn't save built SASS file
问题描述
我安装了 Sublime Text 2 的 SASS 构建系统,正如自述文件和一切都成功了(也安装了SASS).现在,如果我尝试构建我的 .scss 文件,ST2 会打印出类似[Finished in 0.2s]"的内容,而不显示任何结果或保存 .css 文件.我也可以写一些错误的代码,它不会抱怨它,只是再次给我一个完成"的消息.知道是什么导致了这种行为吗?
I installed SASS build system for Sublime Text 2 just as described in the readme and everything succeeded (also SASS installation). Now, if I try to build my .scss file ST2 prints out something like "[Finished in 0.2s]" without showing me any result or save a .css file. I also can write some wrong code and it will not complain about it, just give me a "finished" message again. Any idea what's causing this behaviour?
推荐答案
我的 Mountain Lion 遇到了同样的问题.
我通过从
I had the same problem on my Mountain Lion.
I fixed it by changing the "cmd" line in the SASS.sublime-build (and all the others build files I have for SASS) from
["sass", "--update", "$file:${file_path}/${file_base_name}.css"]
到
["sass --update $file:${file_path}/${file_base_name}.css"]
不知道为什么,但实际上如果您将命令写入包含多个项目的数组中,它将不起作用,而所有在一个字符串中的命令却起作用.
Don't know why, but practically if you write the command in an array with more than one item, it won't work, while the command all in one string does work.
这篇关于Sublime Text 2 不保存构建的 SASS 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!