問題是我的Live SASS編譯器沒有編譯我在settings.json文件(位于下一個目錄:[my-project]/)中設置要創建的所有文件。vscode/settings.json)。下面是我為我的項目實現的json設置的副本:
{
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "/css"
},
{
"extensionName": ".min.css",
"format": "compressed",
"savePath": "/css"
}
],
"liveSassCompile.settings.excludeList": [
"**/node_modules/**",
".vscode/**"
],
"liveSassCompile.settings.generateMap": true,
"liveSassCompile.settings.autoprefix": [
"> 1%",
"last 2 versions"
]
}
有沒有人知道,為什么只有& quot。css & quot每次在我的& quotmain.scss & quot文件,兩者都不是& quotmin.css & quotnor & quot。地圖& quot文件是Live CSS編譯器創建的?感謝任何幫助!
我覺得. vscode前面得有個斜杠。 像這樣
"/**/node_modules/**",
"/.vscode/**"
{
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "~/../css/"
},
{
"extensionName": ".min.css",
"format": "compressed",
"savePath": "~/../css/"
}
],
"liveSassCompile.settings.excludeList": [
"**/node_modules/**",
".vscode/**"
],
"liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.autoprefix": [
"> 1%",
"last 2 versions"
]
}