vscode插件 Live Scss Compiler

Live Scss Compiler 实时编译scss文件为css。小程序使用的是wxss后缀的文件,所以使用这个插件将scss编译成wxss文件

1.按钮插件

vscode插件 Live Scss Compiler_第1张图片


2.在项目根目录下创建文件夹 .vscode ,在文件夹下创建 settings.json 文件

     "liveSassCompile.settings.formats":  [

            {

                 "format": "expanded", 

                 "extensionName": ".wxss", 

                 "savePath": null 

             } 

         ]

3.最后点击底部工具条的上的 Watching 按钮


你可能感兴趣的:(vscode插件 Live Scss Compiler)