我正在使用node-sass将scss编译为css。 如果我只是在终端命令行中手动输入它,这是有效的:
此作品
node-sass --output-style compressed resources/assets/sass/sourcefile.scss public/css/endfile.css
但是,当我将选项放在Visual Studio Code task中时,它不再起作用了。我提供相同的论点,所以我不明白为什么它不起作用......
VS代码任务不起作用
{
"version": "0.1.0",
"command": "node-sass",
"isShellCommand": true,
"args": ["--output-style compressed","resources/assets/sass/materialize.scss","public/css/hrmaterialize.css"]
}
答案 0 :(得分:0)
您需要分开 - 输出风格和压缩
{
"version": "0.1.0",
"command": "node-sass",
"isShellCommand": true,
"args": ["--output-style", "compressed","resources/assets/sass/materialize.scss","public/css/hrmaterialize.css"]
}