less css for ubuntu (and compilation automatically)? [closed]

十年热恋 提交于 2019-12-10 16:09:29

问题


I tried simpless, but is not supported now for linux. I tried with wine, and later another alternatives. I don't want to type: lessc file.less > file.less each time I modify a file.

Any good compiler, confortable, automatically, for less CSS?

What is the linux tool that has same functionality as WinLESS i.e. that compiles less files whenever they change taking into account which less files include which?


回答1:


The most obvious way is to run the javascript implementation on Node.

For Ubuntu, start by installing nodejs and npm, then see e.g. these instructions for compiling LESS to CSS with Node. You should get it going with something like

npm install -g less
lessc mystyle.less


来源:https://stackoverflow.com/questions/11862846/less-css-for-ubuntu-and-compilation-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!