2017-03-20 111 views
1

我是新来的一般的网络发展,我想设置青菜文档这里如下:Visual Studio代码错误

https://code.visualstudio.com/docs/languages/css

但是我收到此错误:

"An output directory must be specified when compiling a directory". On the internet people are suggesting solutions, but they are related to configuration of other editors.

我的项目是这样的,所以你可以有一个想法,我的项目是如何设置:

SASS project config screenshot

我尝试添加与tasks.json文件相同的文件夹中的所有设计文件,但它没有工作,我得到了同样的错误。

我还有一个问题:我需要创建.css文件,还是任务创建它,如果它没有找到?

我很感激任何可能的帮助。

回答

3

我只是想到了这一点,而寻找相同的解决方案。

你“ARGS”必须像这样被配置:

"args": ["./src/app/styles.scss", "./src/app/styles.css"]

的“./”点到项目的根目录,然后只需包含相应的文件夹路径。

干杯!