[英]The live sass compiler plugin I installed for vs code does not follow my css file?
enter image description here在此处输入图像描述
My css file does not translate the codes in my scss file and adds these comment lines, if anyone knows the reason, I would appreciate it.我的 css 文件没有翻译我的 scss 文件中的代码并添加了这些注释行,如果有人知道原因,我将不胜感激。
There are two 'Live Sass Compiler'.有两个'Live Sass Compiler'。 Old one with more than 2 millions downloads, but last time updated in 2018. And new one with 80 thousands downloads, but it supports all new features.
旧的下载量超过200万,但上次更新是2018年。 新的下载量8万,但支持所有新功能。 Try to use newest, it might help.
尝试使用最新的,它可能会有所帮助。
You need to check sass live compiler config file (settings) where you can describe what file types you want to compile and also choose the path you need to your css file.您需要检查 sass 实时编译器配置文件(设置),您可以在其中描述要编译的文件类型,并选择 css 文件所需的路径。 Compiler creates css file automatically.
编译器自动创建 css 文件。
Open extension settings and you will see That's my config打开扩展设置,你会看到 That's my config
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "/css"
}
], ],
If you have done this correctly - I think the problem is syntax inside your sass file如果你做对了——我认为问题出在你的 sass 文件中的语法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.