npm -g install less
a. 安装less
b. 安装less2css
c. 配置less2css:
c-1. 解析:
c-2. 代码:
{
"autoCompile": true,
"createCssSourceMaps": false,
"ignorePrefixedFiles": false,
"lessBaseDir": "./",
"lesscCommand": false,
"main_file": false,
"minify": false,
"minName": false,
"outputDir": "./",
"outputFile": "", //[example.css] if left blank uses same name of .less file
"showErrorWithWindow": true,
"autoprefix": false,
"disableVerbose":false,
"silent":false
}
原文地址:http://blog.51cto.com/12173069/2095168
时间: 2024-10-12 13:51:39