Home >Development Tools >VSCode >How to set up compilation less in vscode

How to set up compilation less in vscode

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-12-06 11:35:513719browse

How to set up compilation less in vscode

1、到应用商店安装easyless插件。

2、在setting.json中添加配置:

"less.compile": {
    "compress": false, 
    "sourceMap": false, 
    "out": "${workspaceRoot}\\css\\",   // 这里是代表编译后生成的css文件所放的位置
}

3、保存less文件后,重新打开vscode,编译好的css文件就会在指定文件夹下。

How to set up compilation less in vscode

PHP中文网,有大量免费的vscode入门教程,欢迎大家学习!

The above is the detailed content of How to set up compilation less in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to restart vscodeNext article:How to restart vscode