2017-03-20 110 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"]

的「./」點到項目的根目錄,然後只需包含相應的文件夾路徑。

乾杯!