0

我使用 sublime text 3 并安装“Sass build”包

这是我的项目结构

/golden
 |----- css 
 |----- scss
          |--- test.scss

我想编译 test.scss 并在 css 文件夹中显示输出。所以我配置包是:

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

但它不起作用。sublime 显示错误报告:

[WinError 2] The system cannot find the file specified
[cmd: ['sass', '--update', 'D:\\golden\\scss\\test.scss:D:\\golden\\scss/../css/test.css']]
[dir: D:\golden\scss]

如何解决这个问题?

4

1 回答 1

1

好的,我找到了这个答案:

请配置

{
    "cmd": ["sass", "--update", "$file:${file_path}/../css/${file_base_name}.css"],
    "windows":
    {
        "shell": "true"
    }
}
于 2016-04-01T07:38:06.263 回答