首先sudo npm install -g less 全局安装less
lessc -v 查看版本号确认是否安装成功
打开webstorm
settings=>preferences=>tools=>file watchers
Arguments:$FileName$ $FileNameWithoutExtension$.wxss --source-map
output paths to refresh:$FileNameWithoutExtension$.wxss:$FileNameWithoutExtension$.wxss.map
Comments | NOTHING