Sublime Text 2 doesn't save built SASS file

后端 未结 2 1388
感动是毒
感动是毒 2021-01-22 04:24

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 prin

相关标签:
2条回答
  • 2021-01-22 05:18

    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 讨论(0)
  • 2021-01-22 05:28

    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"]
    

    to

    ["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.

    0 讨论(0)
提交回复
热议问题