最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - Visual studio Code using Sass is not compiling - Stack Overflow

programmeradmin0浏览0评论

I tried to compile sass using Visual Studio with the “live sass compiler” extension, I'm a bit confused about how to set Sass with CSS. kindly check to see if this correct setting compares with the attachment image.

    "liveSassCompile.settings.includeItems": \[   \],
    "liveSassCompile.settings.watchOnLaunch": true,
    "liveSassCompile.settings.useNewCompiler": true,
    "liveSassCompile.settings.showOutputWindowOn": "Warning",
    "liveSassCompile.settings.formats": \[
       
        {
            "format": "expanded",
            "extensionName": ".css",
            "savePath": null,
            "savePathReplacementPairs": null
        },
        {
            "format": "compressed",
            "extensionName": ".css",
            "savePath": null,
            "savePathReplacementPairs": null,
            "generateMap": false
        }
    \],
    "liveSassCompile.settings.excludeList": \[
        "/**/node_modules/**",
        "/.vscode/**"
    \]
}

I’ve attached a file screenshot, but I need your help to see if this setting is correct for compiler sass.

I tried to compile sass using Visual Studio with the “live sass compiler” extension, I'm a bit confused about how to set Sass with CSS. kindly check to see if this correct setting compares with the attachment image.

    "liveSassCompile.settings.includeItems": \[   \],
    "liveSassCompile.settings.watchOnLaunch": true,
    "liveSassCompile.settings.useNewCompiler": true,
    "liveSassCompile.settings.showOutputWindowOn": "Warning",
    "liveSassCompile.settings.formats": \[
       
        {
            "format": "expanded",
            "extensionName": ".css",
            "savePath": null,
            "savePathReplacementPairs": null
        },
        {
            "format": "compressed",
            "extensionName": ".css",
            "savePath": null,
            "savePathReplacementPairs": null,
            "generateMap": false
        }
    \],
    "liveSassCompile.settings.excludeList": \[
        "/**/node_modules/**",
        "/.vscode/**"
    \]
}

I’ve attached a file screenshot, but I need your help to see if this setting is correct for compiler sass.

Share Improve this question edited Feb 3 at 16:52 James Z 12.3k10 gold badges27 silver badges47 bronze badges asked Feb 3 at 15:08 user1953826user1953826 412 silver badges8 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There's one error that will cause you're files to override each other

The compiler would save the expanded and compressed version with a ".css" extension - so whichever saved first would be overwrote by the last

I'd suggest you use the ".min.css" for the compressed version

发布评论

评论列表(0)

  1. 暂无评论