What is the equivalent of command “Compass watch” for LESS CSS pre-processor?

倾然丶 夕夏残阳落幕 提交于 2019-12-07 12:36:57

问题


I was using SASS as CSS pre-processor for Drupal theme. Where in the command line if I use $ compass watch. It keep on watching the change in .scss file and apply to .css file.

Just I am trying Bootstrap theme and there I am using LESS CSS pre-processor, Where I have to use $ lessc less/style.less css/style.css every time to apply change.

What is the equivalent of $ compass watch for LESS.


回答1:


  1. You need to install less-watch-compiler:
    npm install -g less-watch-compiler

  2. Make sure you installed less globally:
    npm install -g less

  3. In Terminal, navigate to your working directory path and run the following command:
    less-watch-compiler FOLDER_TO_WATCH FOLDER_TO_OUTPUT


来源:https://stackoverflow.com/questions/38946985/what-is-the-equivalent-of-command-compass-watch-for-less-css-pre-processor

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